Closed Bug 1713678 Opened 3 years ago Closed 3 years ago

Use DOCUMENT_EVENT's will-navigate event to track navigation in toolbox.js

Categories

(DevTools :: Framework, enhancement)

enhancement

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(1 file)

Toolbox module is still listening to target actor's will-navigate which doesn't fire when switching between two JSWindowActor based target and so it break with bfcache navigation and server side target switching.

This code:
https://searchfox.org/mozilla-central/source/devtools/client/framework/toolbox.js#701
should instead use DOCUMENT_EVENT will-navigate to track navigation.

This is involved into devtools/client/inspector/test/browser_inspector_select-last-selected.js failure with bfcache in parent (in addition to bug 1710582)

Blocks: 1702630

This helps clear various things for all navigations, including the cross process navigation
and navigation with JSWindowActor based targets.
With work from bug 1702511, this also helps clearing at the precise right time.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Whiteboard: dt-fission-m3-triage
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c0b46be5870b
[devtools] Use DOCUMENT_EVENT will-navigate in toolbox. r=nchevobbe,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: