Closed Bug 1710582 Opened 4 years ago Closed 4 years ago

refreshTab test helper should support target switching

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(Fission Milestone:M8, firefox91 fixed)

RESOLVED FIXED
91 Branch
Fission Milestone M8
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

navigateTo contains all the logic to wait for panel updates on reload,
as well as wait for the process of the new target.

(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.

Fission Milestone: --- → M8
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED

This is involved into devtools/client/inspector/test/browser_inspector_select-last-selected.js (at least this test) failure with bfcache in parent.

Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d503af62f44b [devtools] Make refreshTab test helper wait for target switching. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Attachment #9221291 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: