Bug 1291737 - Renamed DevtoolsContextChild to DevToolsContextChild. r=kmag
authorLuca Greco <lgreco@mozilla.com>
Fri, 02 Dec 2016 15:59:14 -0500
changeset 375205 dc42f50d06e8de0945f1bc8e8efc03d597ddc715
parent 375204 52c940b9aff64f229fb062182907cb265156f76a
child 375206 0d88c3c271d2c771b0c2ea6adc22a1ef10cecd63
push id6996
push userjlorenzo@mozilla.com
push dateMon, 06 Mar 2017 20:48:21 +0000
treeherdermozilla-beta@d89512dab048 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskmag
bugs1291737
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1291737 - Renamed DevtoolsContextChild to DevToolsContextChild. r=kmag This small change rename the DevtoolsContextChild class to DevToolsContextChild, so that it follows the DevTools class names conventions. MozReview-Commit-ID: 67bjC8NgK0n
toolkit/components/extensions/ExtensionChild.jsm
--- a/toolkit/components/extensions/ExtensionChild.jsm
+++ b/toolkit/components/extensions/ExtensionChild.jsm
@@ -898,19 +898,19 @@ defineLazyGetter(ExtensionPageContextChi
 
   if (this.viewType == "background") {
     apiManager.global.initializeBackgroundPage(this.contentWindow);
   }
 
   return childManager;
 });
 
-class DevtoolsContextChild extends ExtensionBaseContextChild {
+class DevToolsContextChild extends ExtensionBaseContextChild {
   /**
-   * This DevtoolsContextChild represents a devtools-related addon execution
+   * This DevToolsContextChild represents a devtools-related addon execution
    * environment that has access to the devtools API namespace and to the same subset
    * of APIs available in a content script execution environment.
    *
    * @param {BrowserExtensionContent} extension This context's owner.
    * @param {object} params
    * @param {nsIDOMWindow} params.contentWindow The window where the addon runs.
    * @param {string} params.viewType One of "devtools_page" or "devtools_panel".
    * @param {object} [params.devtoolsToolboxInfo] This devtools toolbox's information,
@@ -925,17 +925,17 @@ class DevtoolsContextChild extends Exten
   }
 
   unload() {
     super.unload();
     this.extension.devtoolsViews.delete(this);
   }
 }
 
-defineLazyGetter(DevtoolsContextChild.prototype, "childManager", function() {
+defineLazyGetter(DevToolsContextChild.prototype, "childManager", function() {
   let localApis = {};
   devtoolsAPIManager.generateAPIs(this, localApis);
 
   let childManager = new ChildAPIManager(this, this.messageManager, localApis, {
     envType: "devtools_parent",
     viewType: this.viewType,
     url: this.uri.spec,
     incognito: this.incognito,
@@ -1086,17 +1086,17 @@ ExtensionChild = {
                           .QueryInterface(Ci.nsIInterfaceRequestor)
                           .getInterface(Ci.nsIContentFrameMessageManager);
 
     let {viewType, tabId, devtoolsToolboxInfo} = this.contentGlobals.get(mm).ensureInitialized();
 
     let uri = contentWindow.document.documentURIObject;
 
     if (devtoolsToolboxInfo) {
-      context = new DevtoolsContextChild(extension, {
+      context = new DevToolsContextChild(extension, {
         viewType, contentWindow, uri, tabId, devtoolsToolboxInfo,
       });
     } else {
       context = new ExtensionPageContextChild(extension, {viewType, contentWindow, uri, tabId});
     }
 
     this.extensionContexts.set(windowId, context);
   },