Bug 1597804 - Fix "pricnipal" typos in some comments. r=Ehsan

Differential Revision: https://phabricator.services.mozilla.com/D53882

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew McCreight 2019-11-19 23:07:54 +00:00
Родитель f0507fddf7
Коммит 3906df9ebd
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -14,7 +14,7 @@ add_task(async function() {
const uri = Services.io.newFileURI(dir);
const tab = await addJsonViewTab(uri.spec);
// perform sanity checks for URI and pricnipals in loadInfo
// perform sanity checks for URI and principals in loadInfo
await ContentTask.spawn(tab.linkedBrowser, {TEST_JSON_FILE}, async function ({TEST_JSON_FILE}) { // eslint-disable-line
const channel = content.docShell.currentDocumentChannel;
const channelURI = channel.URI.spec;

Просмотреть файл

@ -2051,7 +2051,7 @@ bool NS_IsSameSiteForeign(nsIChannel* aChannel, nsIURI* aHostURI) {
if (loadInfo->GetExternalContentPolicyType() ==
nsIContentPolicy::TYPE_DOCUMENT) {
// for loads of TYPE_DOCUMENT we query the hostURI from the
// triggeringPricnipal which returns the URI of the document that caused the
// triggeringPrincipal which returns the URI of the document that caused the
// navigation.
loadInfo->TriggeringPrincipal()->GetURI(getter_AddRefs(uri));
} else {

Просмотреть файл

@ -2102,7 +2102,7 @@ var BrowserTestUtils = {
/**
* Opens a tab with a given uri and params object. If the params object is not set
* or the params parameter does not include a triggeringPricnipal then this function
* or the params parameter does not include a triggeringPrincipal then this function
* provides a params object using the systemPrincipal as the default triggeringPrincipal.
*
* @param {xul:tabbrowser} tabbrowser