Closed Bug 2033443 Opened 7 months ago Closed 6 months ago

Collapse duplicate permission prompts via request chaining by default

Categories

(Firefox :: Site Permissions, task, P2)

task

Tracking

()

RESOLVED WONTFIX

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.

See Also: → 2033408

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.

Depends on: 2034083

Closing this in favor of Bug 2034083 and handling the duplicate requests in the respective implementations.

Status: NEW → RESOLVED
Closed: 6 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.