Closed Bug 764625 Opened 13 years ago Closed 13 years ago

Web Console and Debugger stay checked in Web Developer menu after closing them with the close X button

Categories

(DevTools :: General, defect)

15 Branch
defect
Not set
normal

Tracking

(firefox15 verified)

RESOLVED FIXED
Firefox 16
Tracking Status
firefox15 --- verified

People

(Reporter: epinal99-bugzilla2, Assigned: paul)

References

Details

(Keywords: regression)

Attachments

(1 file, 4 obsolete files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/16.0 Firefox/16.0a1 Build ID: 20120613030535 Steps to reproduce: 1) Open both Web Console and Debugger 2) Close both Web Console and Debugger with the close X button 3) Go to the Web Developer menu Actual results: Web Console and Debugger stay checked in the Web Developer menu (check mark still visible).
Component: Untriaged → Menus
I see the same behavior on Windows XP and Ubuntu.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
Mozregression range: m-c: good: 2012-05-11 bad: 2012-05-12 http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=e6a9572b48f7&tochange=22a58090fa70 m-i: good: 2012-05-13 bad: 2012-05-14 http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=3e0f7b9a39d7&tochange=3eab6ea25342 I'd say the culprit is: Paul Rouget — Bug 749626 - Theme update: make the close button code generic and implement the dark theme for menulists. r=dao
OS: All → Windows 7
Blocks: 749626
Component: Menus → Developer Tools
OS: Windows 7 → All
Hardware: x86_64 → All
Last Good:f80568dba010 First Bad:2e5b9ba8358b Triggered by:2e5b9ba8358b Joe Walker — Bug 720641 - Integrate GCLI into developer tools global toolbar; r=dcamp,dão,robcee,zpao
Blocks: 720641
No longer blocks: 749626
Version: 16 Branch → 15 Branch
Known for the Web Console: bug 759384 And I'm pretty sure we also have a bug for the debugger.
(In reply to Paul Rouget [:paul] from comment #4) > Known for the Web Console: bug 759384 > And I'm pretty sure we also have a bug for the debugger. Bug 760771.
Assignee: nobody → paul
For the web console, we should use setAttribute(checked, false) on the command (not remove attribute). We want the attribute value to propagate. For the debugger, we will have the same problem. But we don't even update the value on tab change. I'll look at this today.
Attached patch v1 (obsolete) (deleted) — Splinter Review
This only works if the toolbar is active. It needs more work.
Attached patch v2 (obsolete) (deleted) — Splinter Review
Attachment #633517 - Attachment is obsolete: true
Comment on attachment 633557 [details] [diff] [review] v2 Can you guys take a look at this patch and tell me if there's a better play to register these listeners (debugger & webconsole)? Thanks.
Attachment #633557 - Flags: feedback?(past)
Attachment #633557 - Flags: feedback?(mihai.sucan)
Comment on attachment 633557 [details] [diff] [review] v2 Little mistake in the patch, re-uploading soon.
Attachment #633557 - Flags: feedback?(past)
Attachment #633557 - Flags: feedback?(mihai.sucan)
Attached patch v2.1 (obsolete) (deleted) — Splinter Review
Attachment #633557 - Attachment is obsolete: true
Attachment #633567 - Flags: feedback?(past)
Attachment #633567 - Flags: feedback?(mihai.sucan)
Comment on attachment 633567 [details] [diff] [review] v2.1 Paul: this looks good to me, but I'd like a small change such that it fits with the existing onWindowUnload. Also please add the TabSelect event listener alongside the existing TabClose event listener. What happens when the second window is open? Are the event listeners added for the second window as well? Thanks!
Attachment #633567 - Flags: feedback?(mihai.sucan) → feedback+
Comment on attachment 633567 [details] [diff] [review] v2.1 Review of attachment 633567 [details] [diff] [review]: ----------------------------------------------------------------- Looks OK, DebuggerUI is the right place to handle global listeners. Have you verified it works OK when multiple windows are open (with multiple tabs)?
Attachment #633567 - Flags: feedback?(past) → feedback+
Blocks: 763932
(In reply to Panos Astithas [:past] from comment #16) > Looks OK, DebuggerUI is the right place to handle global listeners. Have you > verified it works OK when multiple windows are open (with multiple tabs)? I did.
Attached patch v2.2 (obsolete) (deleted) — Splinter Review
Addressed Mihai's comments. Added tests.
Attachment #633567 - Attachment is obsolete: true
Attachment #633752 - Flags: review?(past)
Attachment #633752 - Flags: review?(mihai.sucan)
Comment on attachment 633752 [details] [diff] [review] v2.2 Looks good to me. Thanks for the update.
Attachment #633752 - Flags: review?(mihai.sucan) → review+
Comment on attachment 633752 [details] [diff] [review] v2.2 Review of attachment 633752 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/devtools/debugger/test/browser_dbg_menustatus.js @@ +3,5 @@ > + * Any copyright is dedicated to the Public Domain. > + * http://creativecommons.org/publicdomain/zero/1.0/ > + */ > + > +function test() { Nit: could you add a one-line comment above that explains the purpose of the test? @@ +28,5 @@ > + is(cmd.getAttribute("checked"), "true", "<command Tools:Debugger> is checked."); > + > + let pane = DebuggerUI.toggleDebugger(); > + > + is(cmd.getAttribute("checked"), "false", "<command Tools:Debugger> is checked once closed."); s/checked/unchecked/
Attachment #633752 - Flags: review?(past) → review+
Attached patch v2.2 - to land (deleted) — Splinter Review
Attachment #633752 - Attachment is obsolete: true
Whiteboard: [land-in-fx-team]
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 16
Comment on attachment 634478 [details] [diff] [review] v2.2 - to land [Approval Request Comment] Bug caused by (feature/regressing bug #): The debugger is a new feature, but the console seems to have regressed with bug 749626 User impact if declined: inconsistent state of the web console and debugger check marks in the menu Testing completed (on m-c, etc.): On m-c and fx-team Risk to taking this patch (and alternatives if risky): fairly minimal patch, in two predominantly developer-only features String or UUID changes made by this patch: none
Attachment #634478 - Flags: approval-mozilla-aurora?
Comment on attachment 634478 [details] [diff] [review] v2.2 - to land [Triage Comment] Very limited scope, and we've got QA/engineer/external testing specifically around the new dev tools changes. I expect we'll find any regressions quickly.
Attachment #634478 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Verified as fixed on: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0 Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20100101 Firefox/15.0 Mozilla/5.0 (Windows NT 6.1; rv:15.0) Gecko/20100101 Firefox/15.0
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: