⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176463 in webkit


Ignore:
Timestamp:
Nov 21, 2014, 12:28:15 PM (12 years ago)
Author:
timothy_horton@apple.com
Message:

REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
https://bugs.webkit.org/show_bug.cgi?id=138960
<rdar://problem/19056715>

Reviewed by Beth Dakin.

  • UIProcess/mac/WKActionMenuController.mm:

(-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):

  • WebView/WebActionMenuController.mm:

(-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
Blacklist contact results, because they don't have useful menus. If we
bail before setting up _currentActionContext, we'll still allow fallthrough
to ordinary text actions, avoiding mysterious failure when a contact is detected.

This doesn't break the case that r176351 was intended to fix,
because in that case we were detecting e.g. addresses.

  • platform/spi/mac/DataDetectorsSPI.h:

Softlink some SPI.

Location:
trunk/Source
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176462 r176463  
     12014-11-21  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
     4        https://bugs.webkit.org/show_bug.cgi?id=138960
     5        <rdar://problem/19056715>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * platform/spi/mac/DataDetectorsSPI.h:
     10        Softlink some SPI.
     11
    1122014-11-21  Tim Horton  <timothy_horton@apple.com>
    213
  • trunk/Source/WebCore/platform/spi/mac/DataDetectorsSPI.h

    r176417 r176463  
    5656SOFT_LINK(DataDetectorsCore, DDScannerCopyResultsWithOptions, CFArrayRef, (DDScannerRef scanner, DDScannerCopyResultsOptions options), (scanner, options))
    5757SOFT_LINK(DataDetectorsCore, DDResultGetRange, CFRange, (DDResultRef result), (result))
     58SOFT_LINK(DataDetectorsCore, DDResultGetType, CFStringRef, (DDResultRef result), (result))
    5859
    5960}
  • trunk/Source/WebKit/mac/ChangeLog

    r176459 r176463  
     12014-11-21  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
     4        https://bugs.webkit.org/show_bug.cgi?id=138960
     5        <rdar://problem/19056715>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * WebView/WebActionMenuController.mm:
     10        (-[WebActionMenuController _defaultMenuItemsForDataDetectedText]):
     11        Blacklist contact results, because they don't have useful menus. If we
     12        bail before setting up _currentActionContext, we'll still allow fallthrough
     13        to ordinary text actions, avoiding mysterious failure when a contact is detected.
     14
     15        This doesn't break the case that r176351 was intended to fix,
     16        because in that case we were detecting e.g. addresses.
     17
    1182014-11-21  Anders Carlsson  <andersca@apple.com>
    219
  • trunk/Source/WebKit/mac/WebView/WebActionMenuController.mm

    r176415 r176463  
    573573        return @[ ];
    574574
     575    // Blacklist contact results, because they don't have useful menus. If we
     576    // bail here, before setting up _currentActionContext, we'll still allow fallthrough
     577    // to ordinary text actions, avoiding mysterious failure when a contact is detected.
     578    if (CFEqual(DDResultGetType([actionContext mainResult]), CFSTR("Contact")))
     579        return @[ ];
     580
     581
    575582    // FIXME: We should hide/show the yellow highlight here.
    576583    _currentActionContext = [actionContext contextForView:_webView altMode:YES interactionStartedHandler:^() {
  • trunk/Source/WebKit2/ChangeLog

    r176462 r176463  
     12014-11-21  Tim Horton  <timothy_horton@apple.com>
     2
     3        REGRESSION (r176351): Parts of apple.com/contact aren't Lookup-able
     4        https://bugs.webkit.org/show_bug.cgi?id=138960
     5        <rdar://problem/19056715>
     6
     7        Reviewed by Beth Dakin.
     8
     9        * UIProcess/mac/WKActionMenuController.mm:
     10        (-[WKActionMenuController _defaultMenuItemsForDataDetectedText]):
     11        Blacklist contact results, because they don't have useful menus. If we
     12        bail before setting up _currentActionContext, we'll still allow fallthrough
     13        to ordinary text actions, avoiding mysterious failure when a contact is detected.
     14
     15        This doesn't break the case that r176351 was intended to fix,
     16        because in that case we were detecting e.g. addresses.
     17
    1182014-11-21  Tim Horton  <timothy_horton@apple.com>
    219
  • trunk/Source/WebKit2/UIProcess/mac/WKActionMenuController.mm

    r176462 r176463  
    636636        return @[ ];
    637637
     638    // Blacklist contact results, because they don't have useful menus. If we
     639    // bail here, before setting up _currentActionContext, we'll still allow fallthrough
     640    // to ordinary text actions, avoiding mysterious failure when a contact is detected.
     641    if (CFEqual(DDResultGetType(actionContext.mainResult), CFSTR("Contact")))
     642        return @[ ];
     643
    638644    // Ref our WebPageProxy for use in the blocks below.
    639645    RefPtr<WebPageProxy> page = _page;
Note: See TracChangeset for help on using the changeset viewer.