Closed Bug 1612363 Opened 5 years ago Closed 5 years ago

window.close does not work for extension popups

Categories

(GeckoView :: Extensions, defect, P1)

Unspecified
All
defect

Tracking

(firefox75 fixed)

RESOLVED FIXED
mozilla75
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.

Assignee: nobody → agi
Priority: -- → P1

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

Assignee: agi → nobody

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: nobody → twisniewski

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).

Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5cfc30212a8a add ability to allow extensions to close their action popups in GV; r=esawin,agi
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: