Stop clearing most reducers on navigation
Categories
(DevTools :: Debugger, task)
Tracking
(firefox115 fixed)
Tracking | Status | |
---|---|---|
firefox115 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
(Regressed 1 open bug)
Details
Attachments
(4 files, 1 obsolete file)
In order to support breakpoint on unload/pagehide/navigation (bug 1806796) we have to stop wiping most reducer data on navigation (NAVIGATE action).
Wiping the data makes us loose all data about the previous page when we are hitting the late breakpoint.
Assignee | ||
Comment 1•2 years ago
|
||
We should stop clearing reducers on navigation and instead only clear
them when each target/thread is removed.
Work has been done to ensure clearing the reducers per thread removal.
We should now be able to drop full wiping of data on NAVIGATE.
Doing this allows to keep the previous page targets data available in
the reducer and so when we are hitting a late breakpoint (for ex on unload)
all data about the previous page is still available and we can pause
correctly. Otherwise, as NAVIGATE action is fired at the beginning of the navigation,
before the unload event is fired, it would have clear most debugger data about sources, breakpoints,...
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Now that we stop clearing reducer entirely on navigation,
it is important to verify that we clear them on each target removal.
Assignee | ||
Comment 3•2 years ago
|
||
The selected location holds a reference to a source and sometimes a sourceActor,
which may become irrelevant when navigating or when a target is removed.
Not doing this leads to editor being kept opened for sources which are now defunct.
Assignee | ||
Comment 4•2 years ago
|
||
These test were trying to fetch http:// URL which were redirected to https://
and the fetch done by createVersionizedHttpTestServer was throwing.
Comment 5•2 years ago
|
||
Comment on attachment 9335413 [details]
Bug 1832585 - [devtools] Fix test using createVersionizedHttpTestServer on http3.
Revision D178779 was moved to bug 1834713. Setting attachment 9335413 [details] to obsolete.
Assignee | ||
Comment 6•2 years ago
|
||
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/78ee8f48414c
https://hg.mozilla.org/mozilla-central/rev/1e61eb6a990f
https://hg.mozilla.org/mozilla-central/rev/e6d21a38489a
https://hg.mozilla.org/mozilla-central/rev/e1e61ea29884
Comment 9•2 years ago
|
||
== Change summary for alert #38481 (as of Fri, 26 May 2023 17:43:49 GMT) ==
Regressions:
Ratio | Test | Platform | Options | Absolute values (old vs new) |
---|---|---|---|---|
43% | reload-debugger:parent-process objects-with-stacks | linux1804-64-tsan-qr | 23.08 -> 33.00 | |
35% | reload-debugger:parent-process objects-with-stacks | linux1804-64-shippable-qr | 24.00 -> 32.50 | |
35% | reload-debugger:parent-process objects-with-stacks | linux1804-64-qr | 24.30 -> 32.75 |
For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=38481
Description
•