Closed Bug 1715911 Opened 3 years ago Closed 3 years ago

Use DOCUMENT_EVENT's dom-complete event in the DOM panel

Categories

(DevTools :: DOM, task)

task

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)

The DOM panel is still using the target event and should use the resource instead, which is more resilient with cross process navigation.

https://searchfox.org/mozilla-central/search?q=%22navigate%22&path=devtools%2Fclient%2Fdom&case=false&regexp=false

Summary: Use DOCUMENT_EVENT's navigate event in the DOM panel → Use DOCUMENT_EVENT's dom-complete event in the DOM panel

This slightly change panel initialization,
instead of updating the UI on opening as soon as the first top level target is available,
it will only update once the navigate resource fires.

So if we open the toolbox on a still loading document, it will update later, but only once
instead of twice.

Fission Milestone: --- → M8
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6d23df924a53 [devtools] Use DOCUMENT_EVENT's dom-complete event in the DOM panel r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: