Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 0420a2ffd96e4c596e30dcb2fba9e88af52aee92
https://github.com/WebKit/WebKit/commit/0420a2ffd96e4c596e30dcb2fba9e88af52aee92
Author: Simon Fraser <[email protected]>
Date: 2026-05-01 (Fri, 01 May 2026)
Changed paths:
M Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm
Log Message:
-----------
[iOS] Restored scroll position is incorrect
https://bugs.webkit.org/show_bug.cgi?id=273424
rdar://127308062
Reviewed by Abrar Rahman Protyasha.
When restoring the scroll position from session state on launch, the code used
`_obscuredInsetsWhenSaved`, but it's more correct to use the current insets
since that will put the content at the right place relative to the current state
of the UI.
Use the helper `_contentOffsetAdjustedForObscuredInset:` to do this.
Can't easily test across exit and launch of the browser.
* Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _restoreScrollAndZoomStateForTransaction:]):
Canonical link: https://commits.webkit.org/312430@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications