Closed
Bug 593536
Opened 14 years ago
Closed 14 years ago
Hide the Inspector behind a pref
Categories
(Firefox :: Menus, defect)
Firefox
Menus
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)
(deleted),
patch
|
Gavin
:
review+
|
Details | Diff | Splinter Review |
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.
Reporter | ||
Comment 1•14 years ago
|
||
This needs to be done in beta 6.
blocking2.0: --- → ?
Whiteboard: [kd4b6]
Reporter | ||
Comment 2•14 years ago
|
||
Reprioritizing bugs. You can filter the mail on the word TEABAGS.
Severity: blocker → normal
Comment 3•14 years ago
|
||
Attachment #472411 -
Flags: review?(gavin.sharp)
Updated•14 years ago
|
Status: NEW → ASSIGNED
Reporter | ||
Updated•14 years ago
|
Blocks: devtools4b7
Comment 4•14 years ago
|
||
Yep - if it's not shipping in FF4, it should not be in our feature-frozen beta. beta6+
blocking2.0: ? → beta6+
Comment 5•14 years ago
|
||
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-
Comment 6•14 years ago
|
||
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)
Comment 7•14 years ago
|
||
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 8•14 years ago
|
||
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 9•14 years ago
|
||
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
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 10•14 years ago
|
||
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
Updated•14 years ago
|
Flags: in-litmus?
You need to log in
before you can comment on or make changes to this bug.
Description
•