Closed Bug 1830925 Opened 2 years ago Closed 2 years ago

PopupNotifications should use lazy pref getter for security.notification_enable_delay

Categories

(Toolkit Graveyard :: Notifications and Alerts, task)

Tracking

(firefox115 fixed)

RESOLVED FIXED
115 Branch
Tracking Status
firefox115 --- fixed

People

(Reporter: emz, Assigned: abhishekmadan, Mentored)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

The delay is currently only read on construction of PopupNotifications which means it can't update if the pref is changed during runtime.

Pref is currently assigned to a variable here: https://searchfox.org/mozilla-central/rev/3563da061ca2b32f7f77f5f68088dbf9b5332a9f/toolkit/modules/PopupNotifications.sys.mjs#241

It should use a lazy preference getter instead. Example: https://searchfox.org/mozilla-central/rev/3563da061ca2b32f7f77f5f68088dbf9b5332a9f/browser/actors/AboutNewTabChild.sys.mjs#21-26

Assignee: nobody → amadan
Status: NEW → ASSIGNED
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e61eeb8e79d9 Added Lazy Pref Getter to allow for updates for security delay without having to restart browser. r=pbz
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 115 Branch
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: