Bug 267421
Summary: | iOS 17: Back / forward navigation doesn't properly restore scroll position if app banner is present | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mads Erik Forberg <mads> |
Component: | Scrolling | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | simon.fraser, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 17 | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 17 | ||
See Also: | https://bugs.webkit.org/show_bug.cgi?id=231563 |
Mads Erik Forberg
Steps to reproduce:
1. Install app related to www.vg.no: https://apps.apple.com/us/app/vg/id381071021
2. After app is installed, go to https://www.vg.no/?ios-bug=true (query parameter is there to avoid JavaScript workaround)
3. Click a link with https://www.vg.no origin (to get the app banner) on the front page.
4. Swipe back to the front page and the scroll will not be restored.
Screen recording of the issue: https://drive.google.com/file/d/17c5NL52DZ4El60k3TiCZL6pyNqK8_vxm/view?usp=sharing
Tested on: iOS 17.3 beta (21D5044a) - iPhone 14 Pro
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/120853821>
Mads Erik Forberg
I log out `window.scrollY` + `window.history.scrollRestoration` to the JS console on the when using the `?ios-bug=true` param:
https://i.imgur.com/N5qlccp.png
Mads Erik Forberg
A theory is that it happens if the next page has app-banner but the first page doesn't.