Changeset 201583 in webkit
- Timestamp:
- Jun 1, 2016, 6:09:55 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebProcess/WebPage/ios/WebPageIOS.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r201575 r201583 1 2016-06-01 Chris Dumez <cdumez@apple.com> 2 3 [iOS] Regression(r200972): Crash under WebKit::WebPage::selectTextWithGranularityAtPoint() 4 https://bugs.webkit.org/show_bug.cgi?id=158284 5 <rdar://problem/26573954> 6 7 Reviewed by Ryosuke Niwa. 8 9 range can be null but r200972 started dereferencing it without null 10 check. This patch adds a null check for range and uses the pre-r200972 11 code path if range is null. 12 13 * WebProcess/WebPage/ios/WebPageIOS.mm: 14 (WebKit::WebPage::selectTextWithGranularityAtPoint): 15 1 16 2016-06-01 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm
r201519 r201583 1876 1876 m_blockSelectionDesiredSize.setHeight(blockSelectionStartHeight); 1877 1877 m_currentBlockSelection = nullptr; 1878 auto* renderer = range ->startContainer().renderer();1879 if (renderer ->style().preserveNewline())1878 auto* renderer = range ? range->startContainer().renderer() : nullptr; 1879 if (renderer && renderer->style().preserveNewline()) 1880 1880 m_blockRectForTextSelection = renderer->absoluteBoundingBoxRect(true); 1881 1881 else {
Note:
See TracChangeset
for help on using the changeset viewer.