Closed Bug 1524489 Opened 6 years ago Closed 6 years ago

GV API for site permissions

Categories

(GeckoView :: General, enhancement, P1)

All
Android
enhancement
Points:
2

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: cpeterson, Unassigned)

References

Details

(Whiteboard: [gvtv] [geckoview:fenix:p1] [geckoview:fenix:m2])

We need a GV API to manage site permissions like autoplay or microphone.

Should Gecko remember the site permissions (and expose a GV API for the app to get and set permissions) or should GV always ask the app (and the app will remember the permissions)? Having the app remember the permissions might be easiest: the GV API would be simpler and the app is responsible for the permission prompt and management UI anyways.

[geckoview:fenix:p2] because I assume Fenix will want to manage site permissions.

Site permissions are a must-have for Fenix MVP and scheduled for Fenix M2.

https://github.com/mozilla-mobile/fenix/issues/218

Whiteboard: [geckoview:fenix:p2] → [geckoview:fenix:p1] [geckoview:fenix:m2]

I think my preference would be that GV always asks. The UI mocks for Fenix have very fined-grained controls and feeding all that into GeckoView and back seems like a massive painful thing. And in Fennec it was always a bit awkward to wait for Gecko to get access to certain data. :)

P1 because site permissions are a must-have for Fenix MVP.

Priority: -- → P1
Blocks: 1524091

Talking to Randall we think our Permissions Delegate API will serve this purpose and the app can keep track (store, or not) of what user has requested. Gecko will ask for permission everytime and an android component can intercept and query user or use a stored preference (per page db).

Sebastian do you agree? Do you want to close this one and use a github issue?

Flags: needinfo?(s.kaspari)
Depends on: 1527056
Depends on: 1527074
Whiteboard: [geckoview:fenix:p1] [geckoview:fenix:m2] → [gvtv] [geckoview:fenix:p1] [geckoview:fenix:m2]

(In reply to David Bolter [:davidb] (NeedInfo me for attention) from comment #4)

Talking to Randall we think our Permissions Delegate API will serve this purpose and the app can keep track (store, or not) of what user has requested. Gecko will ask for permission everytime and an android component can intercept and query user or use a stored preference (per page db).

Sebastian do you agree? Do you want to close this one and use a github issue?

Great! If this is already working this way then we shouldn't need anything more from GV.

We are tracking the work for this project here:
https://github.com/orgs/mozilla-mobile/projects/8

Status: NEW → RESOLVED
Closed: 6 years ago
Flags: needinfo?(s.kaspari)
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.