Implement TargetCommand.reloadTopLevelTarget (to replace TargetFront.reload)
Categories
(DevTools :: Framework, task)
Tracking
(Fission Milestone:M7a, firefox90 fixed)
Tracking | Status | |
---|---|---|
firefox90 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
(Whiteboard: dt-fission-m3-mvp)
Attachments
(2 files)
48 bytes,
text/x-phabricator-request
|
Details | Review | |
Bug 1708635 - [devtools] Migrate usages of TargetFront.reload to TargetCommand.reloadTopLevelTarget.
48 bytes,
text/x-phabricator-request
|
Details | Review |
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 | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Updated•4 years ago
|
Comment 5•4 years ago
|
||
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
Assignee | ||
Comment 6•4 years ago
|
||
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.
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 8•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f4119bb33c63
https://hg.mozilla.org/mozilla-central/rev/cbb08db12151
Description
•