-_beginAnimatedResizeWithUpdates: can leave view in bad state if called during an existing animation
Created attachment 345194 [details] Patch
<rdar://problem/42304518>
Comment on attachment 345194 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345194&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:2906 > + [_resizeAnimationView removeFromSuperview]; resizeAnimationView has the WKContentView as its subview so you just tossed it. Look at the existing code that does this to see how to clean up correctly
Created attachment 345204 [details] Patch
Comment on attachment 345204 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345204&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:2925 > - _dynamicViewportUpdateMode = WebKit::DynamicViewportUpdateMode::NotResizing; > + [self _cancelAnimatedResize]; IIIIII don't know about this one. Does your code do anything even remotely acceptable if _resizeAnimationView is nil?
Comment on attachment 345204 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=345204&action=review >> Source/WebKit/UIProcess/API/Cocoa/WKWebView.mm:2925 >> + [self _cancelAnimatedResize]; > > IIIIII don't know about this one. Does your code do anything even remotely acceptable if _resizeAnimationView is nil? Hmm, -indexOfObject: will fail, and we may move _scrollView to the end. But yeah, that should probably be protected by: "if (!_customContentView && _resizeAnimationView)".
Other than that, it seems OK, but I am afraid. Also, this should be trivially API testable.
There's already a file full of them.
Created attachment 345212 [details] Patch
Comment on attachment 345212 [details] Patch Attachment 345212 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/8572226 New failing tests: http/tests/preload/onload_event.html
Created attachment 345233 [details] Archive of layout-test-results from ews201 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews201 Port: win-future Platform: CYGWIN_NT-6.1-2.9.0-0.318-5-3-x86_64-64bit
Comment on attachment 345212 [details] Patch Clearing flags on attachment: 345212 Committed r233927: <https://trac.webkit.org/changeset/233927>
All reviewed patches have been landed. Closing bug.