[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #13378 [Tor Browser]: Addon icons get added/reordered in the toolbar
#13378: Addon icons get added/reordered in the toolbar
-------------------------+-------------------------------------------------
Reporter: | Owner: tbb-team
mikeperry | Status: new
Type: defect | Milestone:
Priority: normal | Version:
Component: Tor | Keywords: tbb-usability, TorBrowserTeam201410
Browser | Parent ID:
Resolution: |
Actual Points: |
Points: |
-------------------------+-------------------------------------------------
Comment (by mikeperry):
This might be as simple as setting browser.uiCustomization.autoAdd to
false, though that may have side effects for other user-installed addons.
Another workaround might be to call CustomizableUI.reset() or manually
clear the browser.uiCustomization.state pref and then call
CustomizableUI.loadSavedState(). The Tor Launcher Wizard UI or the code in
torbutton_init() that sets "inserted_button" might be good places to do
such a workaround.
Access to CustomizableUI is obtained via something like:
{{{
const { CustomizableUI } =
Cu.import('resource:///modules/CustomizableUI.jsm', {});
}}}
Though it may already be available in the browser.xul scope in Torbutton's
case.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/13378#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs