Closed Bug 1708635 Opened 4 years ago Closed 4 years ago

Implement TargetCommand.reloadTopLevelTarget (to replace TargetFront.reload)

Categories

(DevTools :: Framework, task)

task

Tracking

(Fission Milestone:M7a, firefox90 fixed)

RESOLVED FIXED
90 Branch
Fission Milestone M7a
Tracking Status
firefox90 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

(Whiteboard: dt-fission-m3-mvp)

Attachments

(2 files)

With bug 1698891, page reload are slightly more complex because "navigate" is no longer reliable and you should use DOCUMENT_EVENT's navigate instead.
Also, it would be nice to avoid using the target front directly to reload and instead go through a command, which would bundle the necessary additional code to wait for the completion of the navigation.
We can't do the wait from the TargetFront's reload method because we have to use the resourceWatcher, which can't be used from Fronts.

Unfortunately, to do that, we have to first convert ResourceWatcher to a command so that it can easily be used by any other command (bug 1701790).

Doing this will fix many test failure appearing in tests reloading page and listening to navigate. Especially netmonitor and accessibility panels. This may fix a couple of tests currently failing with bfcacheInParent.

Assignee: nobody → poirot.alex
Status: NEW → ASSIGNED
Fission Milestone: --- → M7a
Whiteboard: dt-fission-m3-triage → dt-fission-m3-mvp
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f15acee46be2 Implement TargetCommand.reloadTopLevelTarget. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/6bce4e61777b Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. r=nchevobbe
Regressions: 1709368

Backed out for causing dt failures in devtools/client/responsive/test/browser/browser_device_change.

Backout link: https://hg.mozilla.org/integration/autoland/rev/7ae39cd2f4f27cd0bfec2a1c56b78dcfdc7dd04d

Push with failures

Failure log

Flags: needinfo?(poirot.alex)

I'm getting race condition when calling ResourceCommand.watchRestouces/unwatchResources.
Unfortunately, that's not super trivial to fix and would probably require some dedicated bug/patches against ResourceCommand.

Flags: needinfo?(poirot.alex)
Attachment #9219473 - Attachment description: Bug 1708635 - Implement TargetCommand.reloadTopLevelTarget. → Bug 1708635 - [devtools] Implement TargetCommand.reloadTopLevelTarget.
Attachment #9219474 - Attachment description: Bug 1708635 - Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. → Bug 1708635 - [devtools] Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget.
Depends on: 1709672
Attachment #9219473 - Attachment description: Bug 1708635 - [devtools] Implement TargetCommand.reloadTopLevelTarget. → Bug 1708635 - Implement TargetCommand.reloadTopLevelTarget.
Attachment #9219474 - Attachment description: Bug 1708635 - [devtools] Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. → Bug 1708635 - Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget.
Attachment #9219473 - Attachment description: Bug 1708635 - Implement TargetCommand.reloadTopLevelTarget. → Bug 1708635 - [devtools] Implement TargetCommand.reloadTopLevelTarget.
Attachment #9219474 - Attachment description: Bug 1708635 - Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. → Bug 1708635 - [devtools] Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget.
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f4119bb33c63 [devtools] Implement TargetCommand.reloadTopLevelTarget. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/cbb08db12151 [devtools] Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: