mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
[DevTools] Use preprocessing for: a global variable "gDevTools" and the context menu - a function "Inspect Element"
Follow up: #106
This commit is contained in:
parent
c166a0abd4
commit
38abddf0e6
3 changed files with 5 additions and 1 deletions
|
|
@ -456,12 +456,14 @@
|
|||
oncommand="gContextMenu.openPasswordManager();"/>
|
||||
</menupopup>
|
||||
</menu>
|
||||
#ifdef MOZ_DEVTOOLS
|
||||
<menuseparator id="inspect-separator" hidden="true"/>
|
||||
<menuitem id="context-inspect"
|
||||
hidden="true"
|
||||
label="&inspectContextMenu.label;"
|
||||
accesskey="&inspectContextMenu.accesskey;"
|
||||
oncommand="gContextMenu.inspectNode();"/>
|
||||
#endif
|
||||
<menuseparator id="context-media-eme-separator" hidden="true"/>
|
||||
<menuitem id="context-media-eme-learnmore"
|
||||
class="menuitem-iconic"
|
||||
|
|
|
|||
|
|
@ -53,8 +53,10 @@ Cu.import("resource://gre/modules/NotificationDB.jsm");
|
|||
["UpdateUtils", "resource://gre/modules/UpdateUtils.jsm"],
|
||||
["Weave", "resource://services-sync/main.js"],
|
||||
["fxAccounts", "resource://gre/modules/FxAccounts.jsm"],
|
||||
#ifdef MOZ_DEVTOOLS
|
||||
// Note: Do not delete! It is used for: base/content/nsContextMenu.js
|
||||
["gDevTools", "resource://devtools/client/framework/gDevTools.jsm"],
|
||||
#endif
|
||||
["webrtcUI", "resource:///modules/webrtcUI.jsm", ]
|
||||
].forEach(([name, resource]) => XPCOMUtils.defineLazyModuleGetter(this, name, resource));
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ browser.jar:
|
|||
content/browser/aboutTabCrashed.js (content/aboutTabCrashed.js)
|
||||
content/browser/aboutTabCrashed.xhtml (content/aboutTabCrashed.xhtml)
|
||||
* content/browser/browser.css (content/browser.css)
|
||||
content/browser/browser.js (content/browser.js)
|
||||
* content/browser/browser.js (content/browser.js)
|
||||
* content/browser/browser.xul (content/browser.xul)
|
||||
content/browser/browser-addons.js (content/browser-addons.js)
|
||||
content/browser/browser-captivePortal.js (content/browser-captivePortal.js)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue