Closed Bug 1721364 Opened 3 years ago Closed 3 years ago

browser_toolbox_window_title_frame_select.js fails with server side target switching enabled

Categories

(DevTools :: Inspector, defect)

defect

Tracking

(Fission Milestone:MVP, firefox92 fixed)

RESOLVED FIXED
92 Branch
Fission Milestone MVP
Tracking Status
firefox92 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

$ ./mach mochitest --headless devtools/client/framework/test/browser_toolbox_window_title_frame_select.js --setpref devtools.target-switching.server.enabled=true

This test fails because the BrowsingContextTargetActor doesn't emit window-destroyed when server side targets are enabled and we use the iframe dropdown to switch to another iframe.
The following check disable this event:
https://searchfox.org/mozilla-central/source/devtools/server/actors/targets/browsing-context.js#1418-1421
This ultimately prevents the Walker Actor to emit the new ROOT_NODE and makes this test fail with a timeout.

We should simply allow this event in case of iframe switching, exactly like what we do for window-ready:
https://searchfox.org/mozilla-central/rev/79a3ae0b0fa6abeca2cb7cf220df293c8dec9207/devtools/server/actors/targets/browsing-context.js#1399-1404

We weren't emitting window-ready in case of iframe switching,
leading to some breakage in walker actor not updating correctly when using the iframe dropdown.

Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fc68b95b69ce
[devtools] Fix devtools/client/framework/test/browser_toolbox_window_title_frame_select.js with server side targets. r=nchevobbe
Status: NEW → ASSIGNED
Fission Milestone: --- → MVP
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: