-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toggling of sidebar doesn't always work due to Firefox API limitations #134
Comments
Hi! Just read this issue and realized that I had a similar issue in my extension User Agent Switcher: I needed to know (from the background script) when the user closed the My solution was this:
On startup it is probably safe to assume that the sidebar panel is not being displayed: If it is it will be immedately be loaded and then open its connection to the background page. |
https://bugzilla.mozilla.org/show_bug.cgi?id=1427431 is fixed now in FF59 |
I still can't seem to use browser.sidebarAction.isOpen within a browserAction.onClicked listener as this adds complexity which leads the browserAction do not get counted as "user input" anymore, which prevents the call of browser.sidebarAction.open and browser.sidebarAction.close. |
My request got denied. I'm going to workaround this in a stupid way. |
Implemented as suggested by @Alexander255. Thanks! |
Follow up issue: #180 |
Toggling of the sidebar via VTR icon is unreliable, due to limitations in Firefox WebExtension APIs.
Not only VTR, but also other add-ons like Tree Style Tab (and every other add-on, which wants to have a sidebar toggling feature via icon (browseraction is the API term)) is affected.
The text was updated successfully, but these errors were encountered: