mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 866845 - add Developer button widget to toolbar / customize panel. r=mconley.
This commit is contained in:
parent
8f5361ef27
commit
ef016dddcf
@ -258,6 +258,26 @@ XPCOMUtils.defineLazyGetter(this, "gBuiltInWidgets", function() {
|
||||
win.BrowserOpenFileWindow();
|
||||
}
|
||||
}
|
||||
}, {
|
||||
id: "developer-button",
|
||||
name: "Developer",
|
||||
shortcut: "Shift+F11",
|
||||
description: "Toggle Developer Tools",
|
||||
defaultArea: CustomizableUI.AREA_PANEL,
|
||||
allowedAreas: [CustomizableUI.AREA_PANEL],
|
||||
icons: {
|
||||
"16": "chrome://branding/content/icon16.png",
|
||||
"32": "chrome://branding/content/icon48.png",
|
||||
"48": "chrome://branding/content/icon48.png"
|
||||
},
|
||||
onCommand: function(aEvent) {
|
||||
let win = aEvent.target &&
|
||||
aEvent.target.ownerDocument &&
|
||||
aEvent.target.ownerDocument.defaultView;
|
||||
if (win && win.gDevToolsBrowser) {
|
||||
win.gDevToolsBrowser.toggleToolboxCommand(win.gBrowser);
|
||||
}
|
||||
}
|
||||
}];
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user