Changeset 247360 in webkit
- Timestamp:
- Jul 11, 2019 1:11:47 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r247357 r247360 1 2019-07-11 Dean Jackson <dino@apple.com> 2 3 CrashTracer: Regression : MobileSafari at UIKit: -[CALayerAccessibility__UIKit__QuartzCore setBounds:] 4 https://bugs.webkit.org/show_bug.cgi?id=199720 5 <rdar://problem/51470469> 6 7 Reviewed by Tim Horton. 8 9 Speculative fix after confirming that this crash can occur when 10 a zero width/height view is used for a UITargetedPreview. We 11 already guarded against this in the default flow, but not in 12 the fallback path where we take a view snapshot. 13 14 * UIProcess/ios/WKContentViewInteraction.mm: 15 (createFallbackTargetedPreview): Return early if rectangles are empty. 16 1 17 2019-07-11 Alex Christensen <achristensen@webkit.org> 2 18 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r247355 r247360 8010 8010 return nil; 8011 8011 8012 if (frameInRootViewCoordinates.isEmpty()) 8013 return nil; 8014 8012 8015 auto parameters = adoptNS([[UIPreviewParameters alloc] init]); 8013 8016 UIView *snapshotView = [rootView resizableSnapshotViewFromRect:frameInRootViewCoordinates afterScreenUpdates:NO withCapInsets:UIEdgeInsetsZero]; 8014 8017 8015 8018 CGRect frameInContainerViewCoordinates = [rootView convertRect:frameInRootViewCoordinates toView:containerView]; 8019 8020 if (CGRectIsEmpty(frameInContainerViewCoordinates)) 8021 return nil; 8022 8016 8023 snapshotView.frame = frameInContainerViewCoordinates; 8017 8024
Note: See TracChangeset
for help on using the changeset viewer.