Closed
Bug 566096
Opened 14 years ago
Closed 14 years ago
Inspect menu item's check mark gets out of sync when switching tabs
Categories
(DevTools :: General, defect)
DevTools
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ehsan.akhgari, Assigned: rcampbell)
References
Details
(Whiteboard: [checked-in])
Attachments
(1 file, 2 obsolete files)
1.18 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
If you turns Inspect on on a tab, and switch to the other tab, the menu item remains checked. If you click it again, Inspect is activated on the new tab and the menu item remains checked. Clicking it again unchecks it.
Assignee | ||
Comment 1•14 years ago
|
||
whups. Must have missed that case. Thanks.
Assignee | ||
Comment 2•14 years ago
|
||
Attachment #445949 -
Flags: review?(gavin.sharp)
Assignee | ||
Comment 3•14 years ago
|
||
This patch moves the update to the individual closeInspectorUI and openInspectorUI methods from toggleInspectorUI where it was being missed on TabSelect. this could use a simple test to go along with it.
Assignee: nobody → rcampbell
Status: NEW → ASSIGNED
Assignee | ||
Updated•14 years ago
|
Reporter | ||
Comment 4•14 years ago
|
||
Did you mean to add helpwanted on this bug?
Assignee | ||
Comment 5•14 years ago
|
||
I would take help if it was offered!
Comment 6•14 years ago
|
||
Comment on attachment 445949 [details] [diff] [review] inspect command checkmark Probably wouldn't hurt to add a smart getter for this: XPCOMUtils.defineLazyGetter(InspectorUI, "inspectCmd", function () { return document.getElementById("Tools:Inspect"); }); and then just use this.inspectCmd everywhere. (If you don't do that, put the toolsInspectCmd declarations just before their use, rather than at the beginning of the function.)
Attachment #445949 -
Flags: review?(gavin.sharp) → review+
Assignee | ||
Comment 7•14 years ago
|
||
I like this. Should I be doing this for the other calls to getElementById() in the InspectorUI constructor?
Assignee | ||
Comment 8•14 years ago
|
||
s/constructor/opener/ in the last comment.
Assignee | ||
Comment 9•14 years ago
|
||
updated patch. Ready for checkin.
Attachment #445949 -
Attachment is obsolete: true
Attachment #446222 -
Flags: review+
Assignee | ||
Comment 10•14 years ago
|
||
Comment on attachment 446222 [details] [diff] [review] inspect command checkmark (r+ from gavin in previous patch, just carried it forward)
Assignee | ||
Updated•14 years ago
|
Whiteboard: [checkin-needed]
Assignee | ||
Comment 11•14 years ago
|
||
review carried forward. ready to checkin.
Attachment #446222 -
Attachment is obsolete: true
Attachment #446515 -
Flags: review+
Assignee | ||
Comment 12•14 years ago
|
||
Comment on attachment 446515 [details] [diff] [review] inspect command checkmark checked-in changeset: 42501:6033fff0ffd0
Assignee | ||
Updated•14 years ago
|
Whiteboard: [checkin-needed] → [checked-in]
Assignee | ||
Updated•14 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•14 years ago
|
Keywords: helpwanted
Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite?
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•