refreshTab test helper should support target switching
Categories
(DevTools :: Framework, enhancement)
Tracking
(Fission Milestone:M8, firefox91 fixed)
Tracking | Status | |
---|---|---|
firefox91 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
(Whiteboard: dt-fission-m3-mvp)
Attachments
(1 file, 1 obsolete file)
This helper currently only track document's load, whereas it should also track panel's updates and wait for the new top level target to be processed.
It becomes important once we enable JSWindowActor based target in bug 1698891.
Note that debugger is also having its own helper, which we may try to merge with the more generic one:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/test/mochitest/helpers.js#783-790
Assignee | ||
Comment 1•4 years ago
|
||
navigateTo contains all the logic to wait for panel updates on reload,
as well as wait for the process of the new target.
Assignee | ||
Comment 2•4 years ago
|
||
Assignee | ||
Comment 3•4 years ago
|
||
(In reply to Alexandre Poirot [:ochameau] from comment #0)
Note that debugger is also having its own helper, which we may try to merge with the more generic one:
https://searchfox.org/mozilla-central/source/devtools/client/debugger/test/mochitest/helpers.js#783-790
About this, this is actually more complex as the debugger often hit a breakpoint on reload and block the page load.
For example BrowserTestUtils.browserLoaded won't resolve because of this.
It makes it hard to reuse navigateTo
and know what event to wait for.
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 4•4 years ago
|
||
This is involved into devtools/client/inspector/test/browser_inspector_select-last-selected.js (at least this test) failure with bfcache in parent.
Comment 6•4 years ago
|
||
bugherder |
Updated•3 years ago
|
Description
•