[meta] Enable all resource watchers on the server, for all target types
Categories
(DevTools :: Framework, task)
Tracking
(Not tracked)
People
(Reporter: ochameau, Unassigned)
References
(Depends on 4 open bugs, Blocks 1 open bug)
Details
(Keywords: meta)
The Watcher actor contains a trait, which reports which resource is supported by the current watcher. The current watcher is bound to a given descriptor. So it can be bound to one tab, one webextension or everything (for the browser toolbox).
These traits are defined here:
https://searchfox.org/mozilla-central/rev/c54c71ecbd9e64cafc0df3b596e206ac4072cb91/devtools/server/actors/watcher.js#119-155
Today, most of them are set only for tab debugging. So only for regular toolbox debugging a tab. And typically not for the browser toolbox, or worker toolboxes.
We should enable the resource watchers on the server for all toolboxes,
so that we can get rid of:
- legacy listeners on the client side, which is still used for watcher retporting false traits,
- legacy server code, like WebConsoleActor.startListeners, ThreadActor.sources, ... which have been replaced by ResourceWatcher.watchResources API.
Reporter | ||
Updated•4 years ago
|
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Framework' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Description
•