Closed Bug 1373415 Opened 8 years ago Closed 7 years ago

Add in a theme.onChanged event

Categories

(WebExtensions :: Frontend, enhancement, P5)

enhancement

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1349944

People

(Reporter: andy+bugzilla, Assigned: andy+bugzilla)

Details

(Whiteboard: [triaged][theme])

We've got a standard onChanged event for most APIs. I think an onChanged event fired whenever the event is changed would be useful. You can already find out what the current theme is, by doing management.getAll and iterating through to find out what theme is enabled. But having an event is nicer than polling.
Thanks for the hat tip :aswan. management.onEnabled event fires when a theme is changed, so that catches about:addons, customise menu etc. So the only thing it doesn't catch is browser.theme.update(..) events.
Assignee: nobody → amckay
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → DUPLICATE
Product: Toolkit → WebExtensions
You need to log in before you can comment on or make changes to this bug.