Bug 273424

Summary: [iOS] Restored scroll position is incorrect
Product: WebKit Reporter: Ali Juma <ajuma>
Component: ScrollingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: cdumez, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ali Juma 2024-04-29 12:16:08 PDT
With the following steps, a page is always scrolled down a bit when Safari is re-launched, even when it was scrolled all the way to the top before.

1) Open a new tab. Visit any page (e.g. www.webkit.org).

2) Scroll down (doesn't have to be all the way, any amount will do).

3) Scroll back to the top.

4) Kill and re-launch Safari


At this point, the page should be scrolled all the way to the top, but instead it will be slightly scrolled down. Also, the amount of scrolling seems unrelated to the amount of scrolling done at step 2.
Comment 1 Radar WebKit Bug Importer 2024-04-30 11:37:56 PDT
<rdar://problem/127308062>
Comment 2 Simon Fraser (smfr) 2024-04-30 12:01:29 PDT
Do you know if this is a regression from older iOS versions?
Comment 3 Ali Juma 2024-04-30 12:26:47 PDT
(In reply to Simon Fraser (smfr) from comment #2)
> Do you know if this is a regression from older iOS versions?

This reproduces at least as far back as iOS 15.5 (the oldest simulator I have on my machine).