Changeset 285976 in webkit
- Timestamp:
- Nov 17, 2021, 7:54:56 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/ios/PageClientImplIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r285973 r285976 1 2021-11-17 Cameron McCormack <heycam@apple.com> 2 3 Protect against null SharedBitmaps when starting a drag 4 https://bugs.webkit.org/show_bug.cgi?id=233217 5 <rdar://problem/85478309> 6 7 Reviewed by Wenson Hsieh. 8 9 * UIProcess/ios/PageClientImplIOS.mm: 10 (WebKit::PageClientImpl::startDrag): 11 1 12 2021-11-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 13 -
trunk/Source/WebKit/UIProcess/ios/PageClientImplIOS.mm
r285973 r285976 911 911 void PageClientImpl::startDrag(const DragItem& item, const ShareableBitmap::Handle& image) 912 912 { 913 [m_contentView _startDrag:ShareableBitmap::create(image)->makeCGImageCopy() item:item]; 913 auto bitmap = ShareableBitmap::create(image); 914 if (!bitmap) 915 return; 916 [m_contentView _startDrag:bitmap->makeCGImageCopy() item:item]; 914 917 } 915 918
Note:
See TracChangeset
for help on using the changeset viewer.