window.close does not work for extension popups
Categories
(GeckoView :: Extensions, defect, P1)
Tracking
(firefox75 fixed)
| Tracking | Status | |
|---|---|---|
| firefox75 | --- | fixed |
People
(Reporter: agi, Assigned: twisniewski)
References
Details
(Whiteboard: [geckoview:m75])
Attachments
(2 files)
Extension popups can be closed using window.close, this however does not currently work on GeckoView.
| Reporter | ||
Updated•5 years ago
|
| Reporter | ||
Comment 1•5 years ago
|
||
Going on PTO for a week so unassigning this. We looked briefly at it with :snorp, normally windows are not allowed to close themselves, but extension popups have special permissions that let them do so. We're not entirely sure how this is done on desktop, but the work here is figure out which flag allows popups to close themselves and apply it to our popups, probably here: https://searchfox.org/mozilla-central/rev/2e355fa82aaa87e8424a9927c8136be184eeb6c7/mobile/android/chrome/geckoview/geckoview.js#204
| Reporter | ||
Comment 2•5 years ago
|
||
This can be tested by loading uBlock on GVE and clicking on one of the buttons on the popup (see screenshot). Right now nothing happens (and an error is printed in the browser console), after the fix for this bug the app should get a call to ContentDelegate#onCloseRequest. Note that GVE doesn't listen to this event for popups yet, so that needs to be added too.
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
add ability to allow extensions to close their action popups in GV.
also drive-by fix a call to a non-existent BrowserApp.selectTab function (which was evidently not ported from Fennec).
Comment 5•5 years ago
|
||
| bugherder | ||
Description
•