WKWebView scroll jump

Originator:jason
Number:rdar://23435234 Date Originated:2015-11-06
Status:Open Resolved:
Product:iOS Product Version:9.0
Classification: Reproducible:always
 
Summary:
See the attached project + video. Basically we are just displaying a WKWebView and navigating to google.ca and at some point it decides to scroll to the bottom of the page.

Stackoverflow: http://stackoverflow.com/questions/33445988/wkwebview-content-jumping-on-load
Potentially related problem Mozilla is having: https://bugzilla.mozilla.org/show_bug.cgi?id=1219241

Steps to Reproduce:
Just run the project in the simulator or on a device.



Expected Results:
0 scroll position (top of page), not overlapped by header

Actual Results:
After a slight delay (1-2 seconds) the page jumps down.

On my simulator (iPhone 6 - iOS 9.1) it seems to jump all the way to the bottom of the page.

On a device (iPhone 6 - iOS 9.0) it seems to just ignore the header bar and the view starts at the top of the screen. If I scroll up and let go, it'll scroll back down so that google's page header is underneath the app's header.

Version:
iOS 9.1 (13B137), iOS 9.0 (13A344)

Notes:


Configuration:
iPhone 6 simulator (iOS 9.1). iPhone 6 device (iOS 9.0)

Attachments:
'ScrollingHack.zip' and 'GoogleScrollJump.mov' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!