зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1512454 - Register about:debugging-new for Nightly builds;r=ladybenko,Ola
Differential Revision: https://phabricator.services.mozilla.com/D13923 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
08226e3138
Коммит
24ae4caadb
|
@ -18,6 +18,7 @@ add_task(async function() {
|
|||
"downloads",
|
||||
// about:debugging requires specific wait code for internal pending RDP requests.
|
||||
"debugging",
|
||||
"debugging-new",
|
||||
];
|
||||
|
||||
for (let cid in Cc) {
|
||||
|
|
|
@ -184,6 +184,10 @@
|
|||
@RESPATH@/browser/components/devtools-startup.js
|
||||
@RESPATH@/browser/components/aboutdebugging-registration.js
|
||||
@RESPATH@/browser/components/aboutdebugging.manifest
|
||||
#ifdef NIGHTLY_BUILD
|
||||
@RESPATH@/browser/components/aboutdebugging-new-registration.js
|
||||
@RESPATH@/browser/components/aboutdebugging-new.manifest
|
||||
#endif
|
||||
@RESPATH@/browser/components/aboutdevtools-registration.js
|
||||
@RESPATH@/browser/components/aboutdevtools.manifest
|
||||
@RESPATH@/browser/components/aboutdevtoolstoolbox-registration.js
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
"use strict";
|
||||
|
||||
// This component is only registered and packaged for local and nightly builds in order to
|
||||
// open the new about:debugging when going to about:debugging-new, without having to flip
|
||||
// the preference. This allows running both versions of about:debugging side by side to
|
||||
// compare them.
|
||||
const { XPCOMUtils } = ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm", {});
|
||||
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm", {});
|
||||
|
||||
const { nsIAboutModule } = Ci;
|
||||
|
||||
function AboutDebuggingNew() {}
|
||||
|
||||
AboutDebuggingNew.prototype = {
|
||||
classDescription: "about:debugging-new",
|
||||
classID: Components.ID("610e4e26-26bd-4a7d-aebc-69211d5a3be0"),
|
||||
contractID: "@mozilla.org/network/protocol/about;1?what=debugging-new",
|
||||
|
||||
QueryInterface: ChromeUtils.generateQI([nsIAboutModule]),
|
||||
|
||||
newChannel: function(_, loadInfo) {
|
||||
const uri = "chrome://devtools/content/aboutdebugging-new/index.html";
|
||||
|
||||
const chan = Services.io.newChannelFromURIWithLoadInfo(
|
||||
Services.io.newURI(uri),
|
||||
loadInfo
|
||||
);
|
||||
chan.owner = Services.scriptSecurityManager.getSystemPrincipal();
|
||||
return chan;
|
||||
},
|
||||
|
||||
getURIFlags: function(uri) {
|
||||
return nsIAboutModule.ALLOW_SCRIPT;
|
||||
},
|
||||
};
|
||||
|
||||
this.NSGetFactory = XPCOMUtils.generateNSGetFactory([
|
||||
AboutDebuggingNew,
|
||||
]);
|
|
@ -0,0 +1,2 @@
|
|||
component {610e4e26-26bd-4a7d-aebc-69211d5a3be0} aboutdebugging-new-registration.js
|
||||
contract @mozilla.org/network/protocol/about;1?what=debugging-new {610e4e26-26bd-4a7d-aebc-69211d5a3be0}
|
|
@ -26,6 +26,12 @@ if CONFIG['MOZ_DEVTOOLS'] == 'all':
|
|||
'locales',
|
||||
]
|
||||
|
||||
if CONFIG['NIGHTLY_BUILD']:
|
||||
EXTRA_COMPONENTS += [
|
||||
'aboutdebugging-new-registration.js',
|
||||
'aboutdebugging-new.manifest',
|
||||
]
|
||||
|
||||
XPCSHELL_TESTS_MANIFESTS += ['tests/unit/xpcshell.ini']
|
||||
|
||||
if CONFIG['MOZ_BUILD_APP'] != 'mobile/android':
|
||||
|
|
Загрузка…
Ссылка в новой задаче