Save and restore both visual *and* layout viewport

NEW
Unassigned

Status

()

enhancement
P3
normal
6 months ago
2 months ago

People

(Reporter: JanH, Unassigned)

Tracking

(Blocks 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

6 months ago
+++ This bug was initially created as a clone of Bug #1498812 +++

As a quick fix, bug 1498812 is simply going to switch the session store to recording the visual viewport offset in lieu of the scroll position of the layout viewport.
While this is better than the current situation, it's still not perfect because for cases where the two viewport positions differ, we won't be correctly restoring the position of the layout viewport and therefore any fixed-position page elements attached to the layout viewport won't appear in their previous position.

Therefore, when the two viewport positions differ, we need to record and restore both of them. This affects both the current scroll positions kept by the session store, as well as the scroll positions stored in session history (in the PresState and the SHEntry itself).
Blocks: ss-feature
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.