-
- Downloads
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
Showing
- .stylelintignore 1 addition, 1 deletion.stylelintignore
- dom/base/Document.cpp 22 additions, 0 deletionsdom/base/Document.cpp
- dom/base/Document.h 1 addition, 1 deletiondom/base/Document.h
- dom/base/DocumentOrShadowRoot.cpp 1 addition, 0 deletionsdom/base/DocumentOrShadowRoot.cpp
- dom/chrome-webidl/StyleSheetApplicableStateChangeEvent.webidl 0 additions, 0 deletions...chrome-webidl/StyleSheetApplicableStateChangeEvent.webidl
- dom/chrome-webidl/StyleSheetRemovedEvent.webidl 17 additions, 0 deletionsdom/chrome-webidl/StyleSheetRemovedEvent.webidl
- dom/chrome-webidl/moz.build 7 additions, 0 deletionsdom/chrome-webidl/moz.build
- dom/events/test/test_all_synthetic_events.html 5 additions, 0 deletionsdom/events/test/test_all_synthetic_events.html
- dom/webidl/moz.build 0 additions, 2 deletionsdom/webidl/moz.build
- layout/base/tests/browser.ini 11 additions, 11 deletionslayout/base/tests/browser.ini
- layout/base/tests/browser_bug839103.js 0 additions, 82 deletionslayout/base/tests/browser_bug839103.js
- layout/base/tests/browser_stylesheet_change_events.js 227 additions, 0 deletionslayout/base/tests/browser_stylesheet_change_events.js
- layout/base/tests/file_stylesheet_change_events.html 0 additions, 0 deletionslayout/base/tests/file_stylesheet_change_events.html
- layout/base/tests/stylesheet_change_events.css 0 additions, 0 deletionslayout/base/tests/stylesheet_change_events.css
- tools/lint/eslint/eslint-plugin-mozilla/lib/environments/privileged.js 1 addition, 0 deletions...lint/eslint-plugin-mozilla/lib/environments/privileged.js
Loading
Please register or sign in to comment