Closed Bug 1909712 Opened 11 months ago Closed 11 months ago

about:addons scroll restoration is not waiting for all content to load properly

Categories

(Toolkit :: Add-ons Manager, defect)

defect

Tracking

()

RESOLVED FIXED
130 Branch
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?

Attached file diff between the two logs. (obsolete) —

The recommended section footer is empty when we try to restore the scroll position it seems. Text not localized yet?

Attached file More readable diff.

(Removed some whitespace)

Attachment #9414660 - Attachment is obsolete: true

Locally the second rAF doesn't seem to be needed, I could probably
remove it.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dd7fbac88c03 Ensure there are no pending translations before restoring the scroll position. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Duplicate of this bug: 1909752
Keywords: regression
Regressed by: 1909048

Set release status flags based on info from the regressing bug 1909048

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: