about:addons scroll restoration is not waiting for all content to load properly
Categories
(Toolkit :: Add-ons Manager, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox-esr128 | --- | unaffected |
firefox128 | --- | unaffected |
firefox129 | --- | unaffected |
firefox130 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(4 files, 1 obsolete file)
After bug 1909048, we follow the spec with regards to timing of requestAnimationFrame
, but browser_html_scroll_restoration.js
is failing one subtest somewhat often, so I'm going to disable it to avoid the back out for now, since I'm pretty sure it's not a real regression.
The issue seems to be that, at the time we call ScrollOffsets.restore()
which is in the second rAF callback (here), all the content is still not there. So since we're scrolled all the way to the bottom, we get clamped, then the content arrives.
We should fix the restoration to either:
- Wait reliably for the content to be there.
- Retry it once the content is there (assuming we haven't scrolled).
- Adjust the test.
I'm attaching logs that show the difference in layout from the point the scrollTo() call is made, to the point where the test checks the scroll offset, which shows the difference quite clearly.
Mark, you touched this last in bug 1843148, is there any reason there's supposed to be any guarantee of the content being there in two rAFs?
Assignee | ||
Comment 1•11 months ago
|
||
Assignee | ||
Comment 2•11 months ago
|
||
Assignee | ||
Comment 3•11 months ago
|
||
The recommended section footer is empty when we try to restore the scroll position it seems. Text not localized yet?
Assignee | ||
Comment 4•11 months ago
|
||
(Removed some whitespace)
Assignee | ||
Comment 5•11 months ago
|
||
Locally the second rAF doesn't seem to be needed, I could probably
remove it.
Updated•11 months ago
|
Comment 7•11 months ago
|
||
bugherder |
Updated•11 months ago
|
Comment 9•11 months ago
|
||
Set release status flags based on info from the regressing bug 1909048
Comment hidden (Intermittent Failures Robot) |
Description
•