Closed Bug 593536 Opened 14 years ago Closed 14 years ago

Hide the Inspector behind a pref

Categories

(Firefox :: Menus, defect)

defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 4.0b7
Tracking Status
blocking2.0 --- beta7+

People

(Reporter: dangoor, Unassigned)

References

Details

(Whiteboard: [kd4b6])

Attachments

(1 file, 2 obsolete files)

We have decided that we're not going to ship the Inspector tool in Firefox 4. However, we've made good progress on the tool and want to keep the work so far. The Inspector hooks into Firefox just through the menu item, so we can hide the menu item behind a preference.
This needs to be done in beta 6.
blocking2.0: --- → ?
Whiteboard: [kd4b6]
Reprioritizing bugs. You can filter the mail on the word TEABAGS.
Severity: blocker → normal
Attached patch Inspector disable menu and key command (obsolete) (deleted) — Splinter Review
Attachment #472411 - Flags: review?(gavin.sharp)
Status: NEW → ASSIGNED
Blocks: devtools4b7
Yep - if it's not shipping in FF4, it should not be in our feature-frozen beta. beta6+
blocking2.0: ? → beta6+
Comment on attachment 472411 [details] [diff] [review] Inspector disable menu and key command Same issue as the other patch - using a <command> element for this would be cleaner, and need to either add a try/catch or a default value for the pref, to avoid the getBoolPref call throwing.
Attachment #472411 - Flags: review?(gavin.sharp) → review-
Attached patch Inspector disable menu and key command 2 (obsolete) (deleted) — Splinter Review
Using Command. Changed pref to just devtools.inspector.enabled as the web console is not using the browser prefix. Added the pref to firefox defaults.
Attachment #472411 - Attachment is obsolete: true
Attachment #473657 - Flags: review?(gavin.sharp)
added appmenu menu item to the party of disablement.
Attachment #473657 - Attachment is obsolete: true
Attachment #473672 - Flags: review?(gavin.sharp)
Attachment #473657 - Flags: review?(gavin.sharp)
Comment on attachment 473672 [details] [diff] [review] [checked-in] Inspector disable menu and key command 3 >diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js >+// disable the Inspector >+pref("devtools.inspector.enabled", false); Probably shouldn't put this between two "download" prefs (maybe put it at the end?) >diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js >+ // Enable Inspector? >+ let enabled = gPrefService.getBoolPref(InspectorUI.prefEnabledName); >+ if (enabled) { >+ document.getElementById("menu_pageinspect").setAttribute("hidden", false); >+ document.getElementById("Tools:Inspect").removeAttribute("disabled"); >+ let appMenuInspect = document.getElementById("appmenu_pageInspect"); >+ if (appMenuInspect) >+ appMenuInspect.setAttribute("hidden", false); >+ } Can use .hidden and .disabled rather than setAttribute/removeAttribute.
Attachment #473672 - Flags: review?(gavin.sharp) → review+
Comment on attachment 473672 [details] [diff] [review] [checked-in] Inspector disable menu and key command 3 http://hg.mozilla.org/mozilla-central/rev/1fc25e5fe837
Attachment #473672 - Attachment description: Inspector disable menu and key command 3 → [checked-in] Inspector disable menu and key command 3
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Verified fixed using hourly build Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b6pre) Gecko/20100910 Firefox/4.0b6pre from cset cca361001fda Inspect is hidden in tools menu and the firefox button. Flipping the pref to true and then restarting Firefox shows the menu entry in both locations.
Assignee: rcampbell → nobody
Status: RESOLVED → VERIFIED
Component: Developer Tools → Menus
OS: Mac OS X → All
QA Contact: developer.tools → menus
Hardware: x86 → All
Target Milestone: --- → Firefox 4.0b6
Flags: in-litmus?
Depends on: 616837
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: