Closed Bug 486202 Opened 16 years ago Closed 15 years ago

Need a method to append toolbar item from javascript.

Categories

(Toolkit :: Toolbars and Toolbar Customization, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: Natch, Unassigned)

References

Details

While attempting to write a test for bug 456984 I was not able to reliably get the new tab customizable button in the toolbar. There should be a method for that.
Err, that should have been bug 456984.
Blocks: 475073
No longer blocks: 456984
Err, something like the following should work: var bar = document.getElementById("xsb-search-bar2"); bar.currentSet = "mailviews-container,spring,search-container"; bar.setAttribute("currentset", bar.currentSet); document.persist(bar, "currentset"); I've been using this in one of my Thunderbird extensions for ages.
Excellent! Thanks Philip, for the test I'll just use: var bar = top.opener.document.getElementById('nav-bar'); bar.currentSet = bar.currentSet + ',new-window-button';
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Resolution: WORKSFORME → INVALID
You need to log in before you can comment on or make changes to this bug.