Remove spawnActorInParentProcess + WebConsoleActor.startListeners([NetworkActivity])
Categories
(DevTools :: Console, task)
Tracking
(firefox110 fixed)
Tracking | Status | |
---|---|---|
firefox110 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(4 files, 3 obsolete files)
spawnActorInParentProcess
+ spawnInParent
are both broken as soon as we enable server side target (bug 1698891).
We keep testing this by disable the server side target pref, but it would be nice to remove this old code still using message managers.
VsCode adapter isn't using NetworkActivity, but may be some external RDP tooling are listening to network events via the console.
We should probably communicate about the new API and the upcoming breakages before removing a bunch of very old and basic APIs like network interception.
We may even sync up with WebDriver progress in order to suggest using the WebDriver API if available.
See bug 1642296 which is about removing the rest of this method and console log listening via the console actor.
Assignee | ||
Comment 1•3 years ago
|
||
Within mozilla-central, WebConsoleActor.startListeners(["NetworkActivity"])
is being used by:
- legacy network event listener
- responsive actor (https://searchfox.org/mozilla-central/rev/699174544b058f13f02e7586b3c8fdbf438f084b/devtools/server/actors/emulation/responsive.js#114)
Assignee | ||
Comment 2•3 years ago
|
||
The responsive actor usage, coming from RDM network throtling feature may need to be rewritten in order to communicate with the NetworkObserver of the NetworkEventWatcher running in the parent process.
The legay listener usage should hopefully get away once we enable the MBT on all channels (bug 1625937). And may be also once we enable the watcher on all toolboxes (bug 1675763).
Assignee | ||
Comment 3•3 years ago
|
||
This code is not compatible with Fission and is no longer used by DevTools.
RDP client should now use: WatcherActor.watchResources("network-event")
request
and listen to WatcherActor.resource-available-form
events.
Assignee | ||
Comment 4•3 years ago
|
||
This was only used by the former NetMonitorActor, which was removed in previous changeset.
Assignee | ||
Comment 5•3 years ago
|
||
Unfortunately, the dependency on bug 1625937 still stands. So we can't remove all this code just yet.
But at least we have a good picture of how much code we could soon remove!
Assignee | ||
Comment 6•3 years ago
|
||
This is no longer used by DevTools. RDP client should now rely on NetworkParentActor's equivalent requests.
This actor can be retrieved via the WatcherActor.
Assignee | ||
Comment 7•3 years ago
|
||
Note that we should also be able to remove the legacyMatchRequest from devtools/server/actors/network-monitor/utils/network-utils.js.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 9•2 years ago
|
||
Now that the old non-fission browser toolbox has been removed,
we no longer use the old codepath going through the web console actor.
We can now use a single codepath for network observable
and followup by removing the now unused server bits.
Updated•2 years ago
|
Assignee | ||
Comment 10•2 years ago
|
||
With the removal of the old non-fission browser toolbox,
we removed the last usage of this old codebase.
We used to be able to listen to network events via WebConsole's actor's startListeners method.
Nowadays we should rather use the Watcher actor's watchResources method and listen to
NETWORK_EVENT resource.
(or migrate to WebDriver Bidi which will soon allow to listen to network requests see bug 1790369)
This patch also removed all now unused block* requests from webconsole actor,
Assignee | ||
Comment 11•2 years ago
|
||
This was only used by legacy netmonitor class.
Assignee | ||
Comment 12•2 years ago
|
||
This required a small workaround in ResourceCommand in order to avoid
trying to spawn network event legacy listeners for workers.
The old legacy listener were bailing out for workers...
Comment 13•2 years ago
|
||
Comment 14•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/d4bdcc85251d
https://hg.mozilla.org/mozilla-central/rev/a1d57b3aafbd
https://hg.mozilla.org/mozilla-central/rev/53417c1fffcc
https://hg.mozilla.org/mozilla-central/rev/37403101913e
Description
•