summaryrefslogtreecommitdiffstats
path: root/browser/base/content
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-08 21:50:16 +0200
committerjanekptacijarabaci <janekptacijarabaci@seznam.cz>2018-04-08 21:50:16 +0200
commit53808c657809049262b79a14d78e793e95076306 (patch)
treee5e0ec25c78a14ef0892c017415c3e150c8d49d1 /browser/base/content
parent2e7c6320a8baed64edfc7576cabfcdbf8ee155d3 (diff)
downloadUXP-53808c657809049262b79a14d78e793e95076306.tar
UXP-53808c657809049262b79a14d78e793e95076306.tar.gz
UXP-53808c657809049262b79a14d78e793e95076306.tar.lz
UXP-53808c657809049262b79a14d78e793e95076306.tar.xz
UXP-53808c657809049262b79a14d78e793e95076306.zip
[DevTools] Use preprocessing for: a global variable "gDevTools" and the context menu - a function "Inspect Element"
Follow up: #106
Diffstat (limited to 'browser/base/content')
-rw-r--r--browser/base/content/browser-context.inc2
-rwxr-xr-xbrowser/base/content/browser.js2
2 files changed, 4 insertions, 0 deletions
diff --git a/browser/base/content/browser-context.inc b/browser/base/content/browser-context.inc
index 51b14d152..3061cccdd 100644
--- a/browser/base/content/browser-context.inc
+++ b/browser/base/content/browser-context.inc
@@ -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"
diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js
index daa3ebfb6..9cc5c54ab 100755
--- a/browser/base/content/browser.js
+++ b/browser/base/content/browser.js
@@ -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));