browser_toolbox_window_title_frame_select.js fails with server side target switching enabled
Categories
(DevTools :: Inspector, defect)
Tracking
(Fission Milestone:MVP, firefox92 fixed)
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
Assignee | ||
Comment 1•3 years ago
|
||
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
Updated•3 years ago
|
Comment 3•3 years ago
|
||
bugherder |
Description
•