Bug 1597804 - Fix "pricnipal" typos in some comments. r=ehsan draft
authorAndrew McCreight <continuation@gmail.com>
Tue, 19 Nov 2019 13:43:53 -0800
changeset 2496059 43f53851231874d8af3b7e5e8d93d18a9d719f14
parent 2496058 f57bbf975cc436516f7dfaf747ebeb90a8cf56f2
child 2496060 9f355e9d2c4f59f33f5207a07b7df5d68cd26aee
push id455279
push useramccreight@mozilla.com
push dateMon, 25 Nov 2019 19:56:04 +0000
treeherdertry@59b13b57567a [default view] [failures only]
reviewersehsan
bugs1597804
milestone72.0a1
Bug 1597804 - Fix "pricnipal" typos in some comments. r=ehsan Differential Revision: https://phabricator.services.mozilla.com/D53882
devtools/client/jsonview/test/browser_json_refresh.js
netwerk/base/nsNetUtil.cpp
testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm
--- a/devtools/client/jsonview/test/browser_json_refresh.js
+++ b/devtools/client/jsonview/test/browser_json_refresh.js
@@ -9,17 +9,17 @@ add_task(async function() {
   info("Test JSON refresh started");
 
   // generate file:// URI for JSON file and load in new tab
   const dir = getChromeDir(getResolvedURI(gTestPath));
   dir.append(TEST_JSON_FILE);
   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;
       ok(
         channelURI.startsWith("file://") && channelURI.includes(TEST_JSON_FILE),
         "sanity: correct channel uri"
       );
       const contentPolicyType = channel.loadInfo.externalContentPolicyType;
--- a/netwerk/base/nsNetUtil.cpp
+++ b/netwerk/base/nsNetUtil.cpp
@@ -2046,17 +2046,17 @@ bool NS_IsSameSiteForeign(nsIChannel* aC
           ->AddonAllowsLoad(channelURI)) {
     return false;
   }
 
   nsCOMPtr<nsIURI> uri;
   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 {
     uri = aHostURI;
   }
 
   nsCOMPtr<mozIThirdPartyUtil> thirdPartyUtil =
       do_GetService(THIRDPARTYUTIL_CONTRACTID);
--- a/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm
+++ b/testing/mochitest/BrowserTestUtils/BrowserTestUtils.jsm
@@ -2097,17 +2097,17 @@ var BrowserTestUtils = {
     func
   ) {
     let win = await this.promiseAlertDialogOpen(buttonAction, uri, func);
     return this.windowClosed(win);
   },
 
   /**
    * 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
    *        The gBrowser object to open the tab with.
    * @param {string} uri
    *        The URI to open in the new tab.
    * @param {object} params [optional]
    *        Parameters object for gBrowser.addTab.