This regressed by bug 1657310. This delayed the call of `ResourceWatcher.onTargetAvailable` which is registering the resource listeners as early as the target is available, so that we shouldn't miss any early resource. https://searchfox.org/mozilla-central/source/devtools/shared/resources/resource-watcher.js#247-262 But now, onTargetAvailable are called slightly later as we attach the thread actor first: https://searchfox.org/mozilla-central/source/devtools/shared/resources/target-list.js#183-198 And that makes us miss the `resource-available-form` events. In addition to that, there is a few additional away in `ResourceWatcher.onTargetAvailable` which may also make us miss some events and the code in the server may also be better written to ensure notifying about the target *before* listening to resources.
Bug 1663706 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
This regressed by bug 1657310. This delayed the call of `ResourceWatcher.onTargetAvailable` which is registering the resource listeners as early as the target is available, so that we shouldn't miss any early resource. https://searchfox.org/mozilla-central/source/devtools/shared/resources/resource-watcher.js#247-262 But now, onTargetAvailable are called slightly later as we attach the thread actor first: https://searchfox.org/mozilla-central/source/devtools/shared/resources/target-list.js#183-198 And that makes us miss the `resource-available-form` events. In addition to that, there is a few additional await in `ResourceWatcher.onTargetAvailable` which may also make us miss some events and the code in the server may also be better written to ensure notifying about the target *before* listening to resources.