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 the about:debugging URL, that allows to debug tabs, extensions, workers on
6 // the current instance of Firefox or on a remote Firefox.
8 const { nsIAboutModule } = Ci;
10 export function AboutDebugging() {}
12 AboutDebugging.prototype = {
13 classDescription: "about:debugging",
14 classID: Components.ID("1060afaf-dc9e-43da-8646-23a2faf48493"),
15 contractID: "@mozilla.org/network/protocol/about;1?what=debugging",
17 QueryInterface: ChromeUtils.generateQI([nsIAboutModule]),
19 newChannel(_, loadInfo) {
20 const chan = Services.io.newChannelFromURIWithLoadInfo(
21 Services.io.newURI("chrome://devtools/content/aboutdebugging/index.html"),
24 chan.owner = Services.scriptSecurityManager.getSystemPrincipal();
29 return nsIAboutModule.ALLOW_SCRIPT | nsIAboutModule.IS_SECURE_CHROME_UI;
33 return Services.io.newURI(
34 "chrome://devtools/content/aboutdebugging/index.html"