Wait for "reloaded" event in debugger tests on navigation/reload
Categories
(DevTools :: Debugger, task)
Tracking
(firefox112 fixed)
| Tracking | Status | |
|---|---|---|
| firefox112 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
For now, the debugger test are using navigateTo test helper, but this isn't waiting for panel's reloaded event.
It means that if the debugger does anything during navigation, the tests won't be correctly waiting for the completion of this work.
This is a blocker for bug 1809168 as it starts doing late RDP request when the page is done loading. i.e. when DOCUMENT_EVENT dom-complete event is fired.
Unfortunately, doing this highlight issues with inline scripts.
| Assignee | ||
Comment 2•2 years ago
|
||
We weren't waiting for "reloaded" event of the debugger and so potentialy resolving
before some async work completed during page navigation.
The main challenge here is that when the test pause the navigation,
navigate and reload test helpers will no longer resolve until the debugger resumes
execution.
I also had to tweak the DOCUMENT_EVENT support for WebExtension.
We still have to accept "frame switching" for WebExt (while keeping it off for the browser toolbox).
Otherwise the debugger doesn't update when reloading the addon or switching between addon documents.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
Backed out 4 changesets (Bug 1814607, Bug 1814608, Bug 1809168) for causing devtools failures CLOSED TREE
Log: https://treeherder.mozilla.org/logviewer?job_id=406913328&repo=autoland&lineNumber=2297
https://treeherder.mozilla.org/logviewer?job_id=406914933&repo=autoland&lineNumber=2673
Backout: https://hg.mozilla.org/integration/autoland/rev/219bc96600a47cd4b95ac71b0b378db961481b33
Comment 6•2 years ago
|
||
| bugherder | ||
| Assignee | ||
Updated•1 year ago
|
Description
•