Changeset 246805 in webkit
- Timestamp:
- Jun 25, 2019 1:51:12 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r246800 r246805 1 2019-06-25 Tim Horton <timothy_horton@apple.com> 2 3 Wrong title for Data Detectors tap action menu 4 https://bugs.webkit.org/show_bug.cgi?id=199198 5 <rdar://problem/51957842> 6 7 Reviewed by Wenson Hsieh. 8 9 * UIProcess/ios/WKActionSheetAssistant.mm: 10 (-[WKActionSheetAssistant showDataDetectorsSheet]): 11 Always pass the results array through to DataDetectors; they need it 12 to figure out the title too! 13 1 14 2019-06-25 Wenson Hsieh <wenson_hsieh@apple.com> 2 15 -
trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm
r246546 r246805 659 659 660 660 if ([controller respondsToSelector:@selector(shouldImmediatelyLaunchDefaultActionForURL:)] && [controller shouldImmediatelyLaunchDefaultActionForURL:targetURL]) { 661 auto action = [controller defaultActionForURL:targetURL results: nilcontext:context];661 auto action = [controller defaultActionForURL:targetURL results:_positionInformation->dataDetectorResults.get() context:context]; 662 662 auto *elementAction = [self _elementActionForDDAction:action]; 663 663 [elementAction _runActionWithElementInfo:_elementInfo.get() forActionSheetAssistant:self]; … … 676 676 } 677 677 678 NSString *title = [controller titleForURL:targetURL results: nilcontext:context];678 NSString *title = [controller titleForURL:targetURL results:_positionInformation->dataDetectorResults.get() context:context]; 679 679 [self _createSheetWithElementActions:elementActions defaultTitle:title showLinkTitle:NO]; 680 680 if (!_interactionSheet)
Note: See TracChangeset
for help on using the changeset viewer.