Closed
Bug 1414613
Opened 7 years ago
Closed 7 years ago
browserAction.setPopup with an empty string does not clear the popup
Categories
(WebExtensions :: Android, defect, P1)
Tracking
(fennec+)
RESOLVED
DUPLICATE
of bug 1426484
Tracking | Status | |
---|---|---|
fennec | + | --- |
People
(Reporter: manish.jethani, Assigned: rpl)
References
Details
Attachments
(1 file)
850 bytes,
application/zip
|
Details |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.62 Safari/537.36
Steps to reproduce:
1. Install the attached extension
2. Tap on the "Example" menu item
Actual results:
Opens popup.html
Expected results:
Opens https://example.com/
Reporter | ||
Updated•7 years ago
|
Blocks: abp, webext-port-abp
Reporter | ||
Comment 1•7 years ago
|
||
The problem clearly is this line:
https://hg.mozilla.org/mozilla-central/rev/965791d09bdc#l1.31
It should check for an empty string.
Updated•7 years ago
|
tracking-fennec: --- → ?
OS: Unspecified → Android
Hardware: Unspecified → ARM
Version: unspecified → Trunk
Comment 2•7 years ago
|
||
For reference, since this isn't mentioned explicitly: Firefox desktop does this correctly, calling setPopup({popup: ""}) disables the pop-up.
Updated•7 years ago
|
tracking-fennec: ? → +
Component: General → WebExtensions: Android
Product: Firefox for Android → Toolkit
Version: Trunk → unspecified
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → lgreco
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Assignee | ||
Updated•7 years ago
|
Hardware: ARM → All
Comment 3•7 years ago
|
||
Hello,
Is there any progress on this bug or is there perhaps going to be some other method of disabling browserAction popup?
Right now there isn't any way to disable the popup if it has been set; this makes it impossible to use onClicked() if the extension would ever need to show some popup.
Personally I would prefer is there was a method to explicitly disable popup like browserAction.disablePopup() because current options can be somewhat confusing.
For example calling setPopup({popup:""}) disables the popup but setPopup({popup:null}) returns it to global value.
Comment 4•7 years ago
|
||
In the time since this bug was filed, setPopup() on desktop has been changed (see bug 1419940). We have bug 1426484 to bring Android in sync with desktop which I think would address this. Luca, you had assigned this to yourself, if you're still interested in this I think working on the dup would be the right thing...
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Updated•6 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•