Closed
Bug 1709792
Opened 3 years ago
Closed 3 years ago
Har automation breaks on target switching
Categories
(DevTools :: Netmonitor, enhancement)
DevTools
Netmonitor
Tracking
(Fission Milestone:M7a, firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Blocks 1 open bug)
Details
(Whiteboard: dt-fission-m3-mvp)
Attachments
(3 files)
Har automation:
- store the first top level target web console front and use it for the whole lifecycle of the toolbox. It starts breaking on the first top level target switch as the first console front is destroyed.
- only listen to will-navigate and navigate, so never picks up the new top level target
- navigate is broken with JSWindowActor based targets (bug 1632141)
We should make this codebase rely on DOCUMENT_EVENT's dom-complete and avoid memoizing the console front (or use onTargetAvailable to update it).
Assignee | ||
Updated•3 years ago
|
Whiteboard: dt-fission-m3-triage
Assignee | ||
Comment 1•3 years ago
|
||
- Stop memoizing web console front
- track navigate via DOCUMENT_EVENT's dom-complete
- workaround missed early will-navigate
These changes help fix browser_harautomation_simple.js
Updated•3 years ago
|
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Updated•3 years ago
|
Fission Milestone: --- → M8
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Assignee | ||
Comment 2•3 years ago
|
||
Make this codebase fully embrace commands and stop being target/toolbox oriented.
Assignee | ||
Comment 3•3 years ago
|
||
This introduces uncessary complexity and makes it uterly complex to wait
for HarAutomation's async initialization.
Its init isn't async yet.
Updated•3 years ago
|
Attachment #9221083 -
Attachment description: Bug 1698891 - [devtools] Support target switching in har automation. → Bug 1709792 - [devtools] Support target switching in har automation.
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e955296ccb07 [devtools] Pass around commands in har automation. r=bomsy https://hg.mozilla.org/integration/autoland/rev/74967859ddaf [devtools] Remove har's toolbox overlay. r=bomsy https://hg.mozilla.org/integration/autoland/rev/fac4711a3e2e [devtools] Support target switching in har automation. r=bomsy
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e955296ccb07
https://hg.mozilla.org/mozilla-central/rev/74967859ddaf
https://hg.mozilla.org/mozilla-central/rev/fac4711a3e2e
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox90:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Updated•3 years ago
|
Fission Milestone: M8 → M7a
You need to log in
before you can comment on or make changes to this bug.
Description
•