Permalink
Browse files

Bug 774613 - Remove inspect element from context menu

  • Loading branch information...
1 parent 4ef684e commit e3e7c7b8965358f7f20d6bb8976329556c1ff0db @janodvarko janodvarko committed Jul 31, 2012
Showing with 9 additions and 3 deletions.
  1. +9 −3 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);
+ }
}
}

0 comments on commit e3e7c7b

Please sign in to comment.