Closed
Bug 1509821
Opened 7 years ago
Closed 7 years ago
Disabled browserAction is re-enabled on every update event
Categories
(WebExtensions :: General, defect)
WebExtensions
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: guido+bmo, Unassigned)
Details
Attachments
(1 file)
|
2.33 KB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0
Steps to reproduce:
If a browser action is disabled for a tab via browser.browserAction.disable() it appears to be correctly disabled immediately after the operation has completed but it is then re-enabled at the next update of that tab (e.g. if the URL changes).
Actual results:
I've attached a minimal example to reproduce which is supposed to disable the browser action from incognito tabs but shows that the action is re-enabled on every tab update event.
| Reporter | ||
Updated•7 years ago
|
Component: Untriaged → General
Product: Firefox → WebExtensions
Comment 1•7 years ago
|
||
This could me more clearly documented, but it is the intended behavior for disabling browser actions.
Note also that we're shooting to land bug 1345474 in Firefox 66 which will give you native support for having an extension not show its browser action in private browsing windows.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•