Changeset 246805 in webkit


Ignore:
Timestamp:
Jun 25, 2019 1:51:12 PM (5 years ago)
Author:
timothy_horton@apple.com
Message:

Wrong title for Data Detectors tap action menu
https://bugs.webkit.org/show_bug.cgi?id=199198
<rdar://problem/51957842>

Reviewed by Wenson Hsieh.

  • UIProcess/ios/WKActionSheetAssistant.mm:

(-[WKActionSheetAssistant showDataDetectorsSheet]):
Always pass the results array through to DataDetectors; they need it
to figure out the title too!

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r246800 r246805  
     12019-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
    1142019-06-25  Wenson Hsieh  <wenson_hsieh@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/WKActionSheetAssistant.mm

    r246546 r246805  
    659659
    660660    if ([controller respondsToSelector:@selector(shouldImmediatelyLaunchDefaultActionForURL:)] && [controller shouldImmediatelyLaunchDefaultActionForURL:targetURL]) {
    661         auto action = [controller defaultActionForURL:targetURL results:nil context:context];
     661        auto action = [controller defaultActionForURL:targetURL results:_positionInformation->dataDetectorResults.get() context:context];
    662662        auto *elementAction = [self _elementActionForDDAction:action];
    663663        [elementAction _runActionWithElementInfo:_elementInfo.get() forActionSheetAssistant:self];
     
    676676    }
    677677
    678     NSString *title = [controller titleForURL:targetURL results:nil context:context];
     678    NSString *title = [controller titleForURL:targetURL results:_positionInformation->dataDetectorResults.get() context:context];
    679679    [self _createSheetWithElementActions:elementActions defaultTitle:title showLinkTitle:NO];
    680680    if (!_interactionSheet)
Note: See TracChangeset for help on using the changeset viewer.