зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1550651 - Remove AboutDebuggingNew component registration r=daisuke
The component is no longer needed since we enabled the new aboutdebugging by default on Nightly Differential Revision: https://phabricator.services.mozilla.com/D32756 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
c356104909
Коммит
f6e56257dd
|
@ -1,40 +0,0 @@
|
|||
/* 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 { 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;
|
||||
},
|
||||
};
|
||||
|
||||
var EXPORTED_SYMBOLS = ["AboutDebuggingNew"];
|
|
@ -28,13 +28,3 @@ if buildconfig.substs['MOZ_DEVTOOLS'] == 'all':
|
|||
'constructor': 'AboutDevtoolsToolbox',
|
||||
},
|
||||
]
|
||||
|
||||
if defined('NIGHTLY_BUILD'):
|
||||
Classes += [
|
||||
{
|
||||
'cid': '{610e4e26-26bd-4a7d-aebc-69211d5a3be0}',
|
||||
'contract_ids': ['@mozilla.org/network/protocol/about;1?what=debugging-new'],
|
||||
'jsm': 'resource:///modules/AboutDebuggingNewRegistration.jsm',
|
||||
'constructor': 'AboutDebuggingNew',
|
||||
},
|
||||
]
|
||||
|
|
|
@ -23,11 +23,6 @@ if CONFIG['MOZ_DEVTOOLS'] == 'all':
|
|||
'locales',
|
||||
]
|
||||
|
||||
if CONFIG['NIGHTLY_BUILD']:
|
||||
EXTRA_JS_MODULES += [
|
||||
'AboutDebuggingNewRegistration.jsm',
|
||||
]
|
||||
|
||||
XPCOM_MANIFESTS += [
|
||||
'components.conf',
|
||||
]
|
||||
|
|
Загрузка…
Ссылка в новой задаче