[Pkg-mozext-commits] [firebug] 43/55: Bug 774613 - Remove inspect element from context menu
David Prévot
taffit at moszumanska.debian.org
Mon Mar 31 22:46:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag firebug-1.10.1
in repository firebug.
commit e3e7c7b8965358f7f20d6bb8976329556c1ff0db
Author: Jan Odvarko <odvarko at gmail.com>
Date: Tue Jul 31 12:51:43 2012 +0200
Bug 774613 - Remove inspect element from context menu
---
extension/content/firebug/firefox/browserOverlay.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/extension/content/firebug/firefox/browserOverlay.js b/extension/content/firebug/firefox/browserOverlay.js
index ad86cce..37b266f 100644
--- a/extension/content/firebug/firefox/browserOverlay.js
+++ b/extension/content/firebug/firefox/browserOverlay.js
@@ -1306,9 +1306,15 @@ if (typeof(nsContextMenu) != "undefined")
{
initItemsOriginal.apply(this, arguments);
- var showInspect = !PrefLoader.getPref("hideDefaultInspector");
- this.showItem("inspect-separator", showInspect);
- this.showItem("context-inspect", showInspect);
+ // Hide built-in inspector menu item if the pref "extensions.firebug.hideDefaultInspector"
+ // says so. Note that there is also built-in preference "devtools.inspector.enable" that
+ // can be used for the same purpose.
+ var hideInspect = PrefLoader.getPref("hideDefaultInspector");
+ if (hideInspect)
+ {
+ this.showItem("inspect-separator", false);
+ this.showItem("context-inspect", false);
+ }
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list