Bug 1291737 - Renamed DevtoolsContextChild to DevToolsContextChild.
This small change rename the DevtoolsContextChild class to
DevToolsContextChild, so that it follows the DevTools class names
conventions.
MozReview-Commit-ID: 67bjC8NgK0n
--- 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);
},