Closed Bug 1722501 Opened 3 years ago Closed 3 years ago

Migrate style editor to will-navigate

Categories

(DevTools :: Style Editor, task)

task

Tracking

(Fission Milestone:MVP, firefox92 fixed)

RESOLVED FIXED
92 Branch
Fission Milestone MVP
Tracking Status
firefox92 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(2 files)

We introduced DOCUMENT_EVENT's dom-loading shouldBeIgnoredAsRedundantWithTargetAvailable attribute in order to mitigate the fact that will-navigate wasn't working nicely over all times of navigations. But this has been fixed now. will-navigate should fire in all types of navigations.

We should be able to use will-navigate instead of a subtle combination of target-available + dom-loading.
And then remove this convoluted flag.

Depends on: 1722493

We used to handle navigation with a subtle and complex combination of target-available + dom-loading.
Just because we were missing will-navigate event in some cases.
But will-navigate is now reliable and is fired in all types of navigations.

Making this block bug 1698891 as this fixes an intermittent failure with (at least) devtools/client/styleeditor/test/browser_styleeditor_inline_friendly_names.js on debug builds:
https://treeherder.mozilla.org/logviewer?job_id=346486475&repo=try
The editors count appear to be invalid when reloading the page with server targets.
Migrating to will-navigate fixes this. I suspect it relates to shouldBeIgnoredAsRedundantWithTargetAvailable logic being broken with server targets.

Blocks: 1698891
Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e0ad3156c4a1
[devtools] Migrate styleeditor to will-navigate. r=nchevobbe
https://hg.mozilla.org/integration/autoland/rev/1371dd75c9c7
[devtools] Remove now unused DOCUMENT_EVENT's dom-loading's shouldBeIgnoredAsRedundantWithTargetAvailable attribute. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
Fission Milestone: --- → MVP
Whiteboard: 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: