Scroll position is lost when homing out and resuming Safari on iOS
Created attachment 417749 [details] Patch
<rdar://problem/71534598>
Committed r271551: <https://trac.webkit.org/changeset/271551> All reviewed patches have been landed. Closing bug and clearing flags on attachment 417749 [details].
I believe we have code that avoids sending certain JS events during snapshotting (resize and orientation). Maybe it would be less risky to run the scrolling code and just avoid sending the JS event that would trigger programmatic scroll?
The programmatic scroll is not from JS. It's from layout (when you layout narrow, and then wide, you may need to adjust your scroll offset because the current one is no longer valid).