Closed Bug 1713578 Opened 3 years ago Closed 3 years ago

Clean up leftover "PermissionStateChange" dispatch for temporary site permissions

Categories

(Firefox :: Site Permissions, task, P3)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: pbz, Assigned: pbz)

References

Details

Attachments

(1 file)

Bug 1693621 switched temporary SitePermissions from being timestamp based and lazily evaluated to timers. That means we no longer need to dispatch a PermissionStateChange event outside of SitePermissions for updating UI for the temporary permission state.
TemporaryPermissions dispatches the event on expiry here: https://searchfox.org/mozilla-central/rev/d3b116e554eb3546a95851e81f7ddc53d5b7e096/browser/modules/SitePermissions.jsm#846

We should remove leftover external dispatches:
https://searchfox.org/mozilla-central/rev/d3b116e554eb3546a95851e81f7ddc53d5b7e096/browser/actors/WebRTCParent.jsm#582-586
https://searchfox.org/mozilla-central/rev/d3b116e554eb3546a95851e81f7ddc53d5b7e096/browser/modules/PermissionUI.jsm#412-416

Assignee: nobody → pbz
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/1e26527ec54d
Removed leftover PermissionStateChange events. r=prathiksha
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: