[Webkit-unassigned] [Bug 273617] New: Scroll position is (sometimes) not correctly restored after restoring a page from the back/forward cache
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 2 02:42:39 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=273617
Bug ID: 273617
Summary: Scroll position is (sometimes) not correctly restored
after restoring a page from the back/forward cache
Product: WebKit
Version: Safari 17
Hardware: iPhone / iPad
OS: iOS 17
Status: NEW
Severity: Normal
Priority: P2
Component: Page Loading
Assignee: webkit-unassigned at lists.webkit.org
Reporter: random_n0body at icloud.com
CC: beidson at apple.com
Created attachment 471249
--> https://bugs.webkit.org/attachment.cgi?id=471249&action=review
Video showing how the scroll position is not correctly restored when going back, and back/forwards
How to reproduce quite reliably on a test page:
1. Go to https://webkit-bfcache-scroll-restore-bug.myshopify.com/collections/all
2. Enter password rtamay
3. Scroll down a bit (maybe to product 50)
4. Click a product
5. Go back
Expected behavior:
The scroll position is restored to where one left off
Actual behavior: there's sometimes some glitching but 3/4 times one ultimately ends up at nearly the top of the page, as can be seen in the attached video on latest ios safari (Mozilla/5.0 (iPhone; CPU iPhone OS 17_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Mobile/15E148 Safari/604.1).
The scroll position is correctly restored in all other browsers and also on desktop safari, just not iOS.
It has something to do with the back/forward cache because when just reloading the page the scroll position is correctly maintained.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240502/7d7cfcd1/attachment.htm>
More information about the webkit-unassigned
mailing list