Closed Bug 1728092 Opened 4 years ago Closed 4 years ago

Wait properly for toolbox to completely load after a reload in netmonitor tests

Categories

(DevTools :: Netmonitor, task)

task

Tracking

(firefox93 fixed)

RESOLVED FIXED
93 Branch
Tracking Status
firefox93 --- fixed

People

(Reporter: bomsy, Assigned: jdescottes)

References

Details

Attachments

(2 files)

Just doing a waitForNetworkEvents after relaods(for netmonitor tests) in scenarios like

const wait = waitForNetworkEvents(monitor, 1);
tab.linkedBrowser.reload();
await wait;

are not enough and are leading to issues. One possible issue is this fail issue mentioned here
https://bugzilla.mozilla.org/show_bug.cgi?id=1726461

Lets wait for the toolbox to completely load and any necessary events before continuing.

Also the work being done in https://bugzilla.mozilla.org/show_bug.cgi?id=1727506 would be very helpful.

Might be missing some of them, but updating all the tests returned by the following query would be a good start: https://searchfox.org/mozilla-central/search?q=.reload%28%29&path=devtools%2Fclient%2Fnetmonitor&case=false&regexp=false

Summary: Wait properly for toolbox to completely load after a reload in tests → Wait properly for toolbox to completely load after a reload in netmonitor tests
See Also: → 1728301
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

Depends on D124188

A few tests outside of the netmonitor also used tab.linkedBrowser.reload, let's migrate them at the same time.

Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98a89c0b759f [devtools] Wait properly for toolbox to completely load after a reload in netmonitor tests r=bomsy https://hg.mozilla.org/integration/autoland/rev/a8c44ae83022 [devtools] Use shared browserReload helper in most tests using browser.reload r=bomsy
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: