Closed Bug 1663706 Opened 4 years ago Closed 4 years ago

Early console message made in remote frame are missing

Categories

(DevTools :: Console, defect)

defect

Tracking

(Fission Milestone:M7, firefox-esr68 unaffected, firefox-esr78 unaffected, firefox80 unaffected, firefox81 disabled, firefox82 disabled, firefox83 fixed)

RESOLVED DUPLICATE of bug 1667362
Fission Milestone M7
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 --- disabled
firefox82 --- disabled
firefox83 --- fixed

People

(Reporter: ochameau, Unassigned)

References

(Regression)

Details

(Keywords: regression)

STR:

ER:
See Simple log from odvarko.com in the console

AR:
Simple log from odvarko.com is not visible.

The console message is visible when you open the devtools, but not when you reload the page. We only miss messages that are done early when the remote iframe just started loading.

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.

Regressed by: 1657310
Has Regression Range: --- → yes

Also, this highlights the lack of test to cover such feature. I thought ResourceWatcher tests would cover that, but it looks like they don't.

Flagging as reserve as we are running out of mvp slots. But this should hopefully be fixed soon, for the nightly experiment.

Whiteboard: dt-fission-m2-reserve

Set release status flags based on info from the regressing bug 1657310

Tracking dt-fission-m2-reserve bugs for Fission Beta milestone (M7).

Fission Milestone: --- → M7
Whiteboard: dt-fission-m2-reserve → dt-fission-m2-mvp

This have been fixed by bug 1667362.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
Whiteboard: dt-fission-m2-mvp
You need to log in before you can comment on or make changes to this bug.