Open Bug 720384 Opened 13 years ago Updated 2 years ago

scroll restoration happens far too late

Categories

(Firefox :: Session Restore, defect)

x86
macOS
defect

Tracking

()

People

(Reporter: dietrich, Unassigned)

Details

(Whiteboard: [snappy:p2])

Attachments

(1 file)

i've been meaning to file this bug for ages: when we restore a page, scroll position is restored far too late in the process. we'll restore the whole page and reposition scrolling afterwards, which means it occurs while the user can have already started interacting with the page. i see this sometimes when i undo-close-tab on long or complex pages (i see it on amazon product pages for example). we should be able to set scroll position much earlier in the process. if there's no api to do so, one should be created in the platform.
100% reproduceable for me with 'c'. type 'abc' and immediately the whole string disappears. interestingly, if i start with 'c' it's ok... until another 'c' comes along.
aaaand the last comment was meant for a completely different bug. ignore.
marking snappy, since it feels super slow.
Whiteboard: [snappy]
Whiteboard: [snappy] → [snappy:p2]
I'll take a look at this.
Assignee: nobody → andres
Attached file Changes
I tried changing the restoreDocument method in SessionRestore.jsm, to restore all scroll data first, before all the rest of the document data (form data, inner html, styles). However, I think we don't have a real gain on this. Even if the 'scrollTo' method is called first, it's still slow. I would say that 'scrollTo' is the one being slow. Any ideas?
Assignee: andres → nobody
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: