CrashTracer: Regression : MobileSafari at UIKit: -[CALayerAccessibility__UIKit__Quart...
authordino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Jul 2019 20:11:47 +0000 (20:11 +0000)
committerdino@apple.com <dino@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 11 Jul 2019 20:11:47 +0000 (20:11 +0000)
commit1271ce4eeb7649542958543d859ad354c2de3b64
tree4e9fa72b44777b4b1fb24ece9e82b593366c4933
parent29e563dcbf8a66eab5d49f795a00c2711fdea499
CrashTracer: Regression : MobileSafari at UIKit: -[CALayerAccessibility__UIKit__QuartzCore setBounds:]
https://bugs.webkit.org/show_bug.cgi?id=199720
<rdar://problem/51470469>

Reviewed by Tim Horton.

Speculative fix after confirming that this crash can occur when
a zero width/height view is used for a UITargetedPreview. We
already guarded against this in the default flow, but not in
the fallback path where we take a view snapshot.

* UIProcess/ios/WKContentViewInteraction.mm:
(createFallbackTargetedPreview): Return early if rectangles are empty.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@247360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm