1. Navigate to nike.com 2. Tap on the top menu bar: Men, Women, Boys etc.. 3. The pull down menu does not stay.
rdar://problem/21046961
Created attachment 257014 [details] Patch
Created attachment 257015 [details] Patch
Comment on attachment 257015 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257015&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:969 > + if (!oldUnobscuredContentRect.isEmpty() && oldUnobscuredContentRect.y() < 1) { oldUnobscuredContentRect.y() < 1 is true for RTL pages. Please test one.
(In reply to comment #4) > Comment on attachment 257015 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=257015&action=review > > > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:969 > > + if (!oldUnobscuredContentRect.isEmpty() && oldUnobscuredContentRect.y() < 1) { > > oldUnobscuredContentRect.y() < 1 is true for RTL pages. Please test one. Works fine on nike.com with body dir=rtl
Comment on attachment 257015 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=257015&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:967 > + // FIXME: We need to support programmatic scroll-after-viewport update. I think this is no longer true. In RemoteLayerTreeDrawingAreaProxy::commitLayerTree(), didCommitLayerTree() is before requestScroll(). > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:974 > + [_scrollView zoomToRect: { newTopLeft, rectToZoomSize } animated:NO]; Can you double check that the zoom rect used here does not depend on the ContentInset of UIScrollView? Here we are only using the bounds.
Created attachment 257202 [details] Patch
(In reply to comment #6) > Comment on attachment 257015 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=257015&action=review > > > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:967 > > + // FIXME: We need to support programmatic scroll-after-viewport update. > > I think this is no longer true. In > RemoteLayerTreeDrawingAreaProxy::commitLayerTree(), didCommitLayerTree() is > before requestScroll(). > > > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:974 > > + [_scrollView zoomToRect: { newTopLeft, rectToZoomSize } animated:NO]; > > Can you double check that the zoom rect used here does not depend on the > ContentInset of UIScrollView? > > Here we are only using the bounds. Tested with landscape mode with the sidebar open.
Comment on attachment 257202 [details] Patch Clearing flags on attachment: 257202 Committed r187131: <http://trac.webkit.org/changeset/187131>
All reviewed patches have been landed. Closing bug.
Re-opened since this is blocked by bug 147839