Bug 1890689 Don't pretend to pre-buffer with DynamicResampler r=pehrsons
[gecko.git] / devtools / startup / AboutDebuggingRegistration.sys.mjs
blobfcda1e8367fe159b10d07b0cfb13dc0e667fc443
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"),
22       loadInfo
23     );
24     chan.owner = Services.scriptSecurityManager.getSystemPrincipal();
25     return chan;
26   },
28   getURIFlags() {
29     return nsIAboutModule.ALLOW_SCRIPT | nsIAboutModule.IS_SECURE_CHROME_UI;
30   },
32   getChromeURI(_uri) {
33     return Services.io.newURI(
34       "chrome://devtools/content/aboutdebugging/index.html"
35     );
36   },