Collapse duplicate permission prompts via request chaining by default
Categories
(Firefox :: Site Permissions, task, P2)
Tracking
()
People
(Reporter: emz, Unassigned)
References
Details
Currently when multiple site permission requests are made PopupNotifications.sys.mjs will just keep replacing the prompt, leaving older requests dangling. We could cancel old requests, but a more sensible default behavior would be to queue subsequent requests behind the existing prompt.
This should be the default behavior unless callers opt-out in which case we should cancel old requests when a new one comes in. Chaining can only happen if the requests are for the same principal and permission type.
| Reporter | ||
Comment 1•7 months ago
|
||
We might want to reconsider or at least make it opt-in since permission requests can differ in more than just principal + permission type. E.g. MIDI Can be midi or midi-sysex and Storage Access can have different permission keys depending on scoping.
The actual "dangling" bug we could also resolve by cancelling prior permission requests when PopupNotifications replaces the prompt.
| Reporter | ||
Comment 2•6 months ago
|
||
Closing this in favor of Bug 2034083 and handling the duplicate requests in the respective implementations.
Description
•