Skip to content
Snippets Groups Projects
Commit f086602a authored by Nicolas Chevobbe's avatar Nicolas Chevobbe
Browse files

Bug 1771113 - Add chromeOnly `StyleSheetRemoved` event, emitted when a...

Bug 1771113 - Add chromeOnly `StyleSheetRemoved` event, emitted when a stylesheet is removed. r=emilio.

This new event will be consumed by DevTools to update style information.

As for `StyleSheetApplicableStateChanged`, this event is emitted from the document.
It's only enabled when `document.styleSheetChangeEventsEnabled` is set to true.

The existing test around the `StyleSheetApplicableStateChanged` is renamed and
modified to assert both events when stylesheets are added, modified and removed.

Differential Revision: https://phabricator.services.mozilla.com/D147271
parent 1dbe69a3
No related branches found
No related tags found
No related merge requests found
Showing
with 293 additions and 97 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment