Closed
Bug 711508
Opened 14 years ago
Closed 14 years ago
Toolbox.externalToolbars duplicated if the toolbar contains a menubar with autoHide enabled.
Categories
(Toolkit :: Toolbars and Toolbar Customization, defect)
Tracking
()
RESOLVED
FIXED
mozilla11
People
(Reporter: mconley, Assigned: mconley)
References
Details
Attachments
(1 file)
951 bytes,
patch
|
enndeakin
:
review+
|
Details | Diff | Splinter Review |
Thunderbird contains it's main menubar within a toolbar, and when autoHide is toggled, it looks like, for some reason or another, the constructor is recalled on that toolbar.
This causes the toolbox to have the same toolbar re-added as an external toolbar.
Assignee | ||
Comment 1•14 years ago
|
||
This patch simply ensures that the external toolbar does not already exist in the toolbox before adding itself to the externalToolbars collection.
Assignee: nobody → mconley
Attachment #582300 -
Flags: review?(enndeakin)
Assignee | ||
Updated•14 years ago
|
Blocks: tb-tabsontop
Assignee | ||
Comment 2•14 years ago
|
||
Neil:
You're my local XUL go-to guy - but let me know if you want me to redirect the review.
-Mike
Comment 3•14 years ago
|
||
Comment on attachment 582300 [details] [diff] [review]
Patch v1
Are you removing the toolbar from the document when autohide is toggled?
It looks like the toolbox getter doesn't handle being removed as it caches the _toolbox value, even though it could have changed by being moved somewhere else.
Attachment #582300 -
Flags: review?(enndeakin) → review+
Assignee | ||
Comment 4•14 years ago
|
||
Neil:
No, we're just toggling the collapsed attribute. Not sure why the constructor is called when we collapse and uncollapse though...
-Mike
Assignee | ||
Comment 5•14 years ago
|
||
Pushed to mozilla-inbound as https://hg.mozilla.org/integration/mozilla-inbound/rev/6c49a8d46f7d
Target Milestone: --- → mozilla11
Comment 6•14 years ago
|
||
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Component: XUL → Toolbars and Toolbar Customization
Product: Core → Toolkit
QA Contact: xptoolkit.widgets → toolbars
You need to log in
before you can comment on or make changes to this bug.
Description
•