Bug 273424 - [iOS] Restored scroll position is incorrect
Summary: [iOS] Restored scroll position is incorrect
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Scrolling (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-04-29 12:16 PDT by Ali Juma
Modified: 2024-04-30 12:26 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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).