Bug 1539451 - Remove the unused "disabled" field in devtools/client/menus r=remote-debugging-reviewers,daisuke

Differential Revision: https://phabricator.services.mozilla.com/D37859

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-07-16 16:22:34 +00:00
parent 76bca06a4f
commit e7303a1e95

View File

@ -20,9 +20,6 @@
* Identifier used in devtools/client/devtools-startup.js
* Helps figuring out the DOM id for the related <xul:key>
* in order to have the key text displayed in menus.
* - disabled:
* If true, the menuitem and key shortcut are going to be hidden and disabled
* on startup, until some runtime code eventually enable them.
* - checkbox:
* If true, the menuitem is prefixed by a checkbox and runtime code can
* toggle it.
@ -79,7 +76,6 @@ const isAboutDebuggingEnabled = Services.prefs.getBoolPref(
const aboutDebuggingItem = {
id: "menu_devtools_remotedebugging",
l10nKey: "devtoolsRemoteDebugging",
disabled: true,
oncommand(event) {
const window = event.target.ownerDocument.defaultView;
gDevToolsBrowser.openAboutDebugging(window.gBrowser);
@ -106,7 +102,6 @@ exports.menuitems = [
{
id: "menu_webide",
l10nKey: "webide",
disabled: true,
oncommand() {
gDevToolsBrowser.openWebIDE();
},
@ -115,7 +110,6 @@ exports.menuitems = [
{
id: "menu_browserToolbox",
l10nKey: "browserToolboxMenu",
disabled: true,
oncommand() {
BrowserToolboxProcess.init();
},
@ -124,7 +118,6 @@ exports.menuitems = [
{
id: "menu_browserContentToolbox",
l10nKey: "browserContentToolboxMenu",
disabled: true,
oncommand(event) {
const window = event.target.ownerDocument.defaultView;
gDevToolsBrowser.openContentProcessToolbox(window.gBrowser);
@ -185,7 +178,6 @@ exports.menuitems = [
{
id: "menu_devtools_connect",
l10nKey: "devtoolsConnect",
disabled: true,
oncommand(event) {
const window = event.target.ownerDocument.defaultView;
gDevToolsBrowser.openConnectScreen(window.gBrowser);