| Summary: | Smooth scroll on iframe fails on iOS | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Johannes Odland <johannes.odland> | ||||||
| Component: | Scrolling | Assignee: | Simon Fraser (smfr) <simon.fraser> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | changseok, dino, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 15 | ||||||||
| Hardware: | iPhone / iPad | ||||||||
| OS: | iOS 15 | ||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=245722 | ||||||||
| Attachments: |
|
||||||||
|
Description
Johannes Odland
2022-04-11 02:30:10 PDT
This works in the main frame, but fails inside an <iframe>, in my testing. ScrollingTreeFrameScrollingNodeRemoteIOS fails to implement startAnimatedScrollToPosition. Created attachment 457444 [details]
Patch
Comment on attachment 457444 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457444&action=review > LayoutTests/fast/scrolling/ios/constrain-scrollintoview-position.html:15 > + let iframe = document.getElementsByTagName('iframe')[0]; Nit: extra space indent The issue is not isolated to iframes. It was detected in a regular web page, and the code pen when opened in debug-view is a regular web-page with no iframes. The issue is not isolated to iframes. It was detected in a regular web page, and the code pen when opened in debug-view is a regular web-page with no iframes. Created attachment 458571 [details]
Video of issue in main frame
Attaching video of issue in the main frame.
The main frame case was fixed by an earlier change. I just tested a recent build, and both work now. I found a new way to trigger this bug in the same codepen in iOS 16. I registered it as a new issue here: https://bugs.webkit.org/show_bug.cgi?id=245722 |