1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 // Register about:devtools-toolbox which allows to open a devtools toolbox
6 // in a Firefox tab or a custom html iframe in browser.html
8 const { nsIAboutModule } = Ci;
10 export function AboutDevtoolsToolbox() {}
12 AboutDevtoolsToolbox.prototype = {
13 uri: Services.io.newURI("chrome://devtools/content/framework/toolbox.xhtml"),
14 classDescription: "about:devtools-toolbox",
15 classID: Components.ID("11342911-3135-45a8-8d71-737a2b0ad469"),
16 contractID: "@mozilla.org/network/protocol/about;1?what=devtools-toolbox",
18 QueryInterface: ChromeUtils.generateQI([nsIAboutModule]),
20 newChannel(uri, loadInfo) {
21 const chan = Services.io.newChannelFromURIWithLoadInfo(this.uri, loadInfo);
22 chan.owner = Services.scriptSecurityManager.getSystemPrincipal();
28 nsIAboutModule.ALLOW_SCRIPT |
29 nsIAboutModule.ENABLE_INDEXED_DB |
30 nsIAboutModule.HIDE_FROM_ABOUTABOUT