Closed Bug 1808870 Opened 1 year ago Closed 1 year ago

Remove stylesheet legacy listener and related frontend code

Categories

(DevTools :: Style Editor, task)

task

Tracking

(firefox111 fixed)

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

Details

Attachments

(10 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

All toolboxes using stylesheets now use the watcher so we can drop the legacy listener and use the watcher instead.

We can also remove individual code branches which are checking if the stylesheet watcher is supported: eg hasStyleSheetWatcherSupport in the server side, and hasResourceCommandSupport for resourceCommand.TYPES.STYLESHEET on the frontend

We might also be able to remove some parts of the actor implementation if some features are now 100% handled by the watcher + stylesheets-manager codepath

The legacy listener for stylesheets should no longer be needed on any configuration

Depends on D166139

This is one of the easiest actors to unplug, and it has very little connections to the rest, so doing it early in the stack

Depends on D166141
Quick followup, we can fully remove the actor.

Duplicate of this bug: 1673805
Blocks: 1810572
Blocks: 1810579
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/09b5da592a13
[devtools] Remove stylesheet legacy listener r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/0fc18da9c9b1
[devtools] Remove unused media-rules-changed event and getMediaRules r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/f3284760089c
[devtools] Remove mediarule actor r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/df38a1ef3e81
[devtools] Remove unused code branches behind hasStyleSheetWatcherSupport r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/07b9748fb937
[devtools] Remove frontend codepath only relevant when stylesheet watcher was disabled r=devtools-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/8643fa86cf89
[devtools] Remove the stylesheet actor r=devtools-reviewers,devtools-backward-compat-reviewers,nchevobbe
https://hg.mozilla.org/integration/autoland/rev/566d99ce4023
[devtools] Move UPDATE_PRESERVING_RULES and UPDATE_GENERAL constants to stylesheets-manager r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/727881629f0a
[devtools] Move getSheetOwnerNode to stylesheets-manager and delete actors/style-sheet.js r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/0de387a149e8
[devtools] Rename all occurrences of styleSheetManager to styleSheetsManager r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/e77ae764df90
[devtools] Fix bug number in comments about constructed stylesheets r=nchevobbe
Regressions: 1811254
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: