Changeset 259056 in webkit


Ignore:
Timestamp:
Mar 26, 2020 11:00:18 AM (4 years ago)
Author:
dino@apple.com
Message:

Force Touch preview on file:/// URL works while clicking on the URL is blocked
https://bugs.webkit.org/show_bug.cgi?id=209589
<rdar://57687893>

Reviewed by Antoine Quint.

The immediate action for links should never trigger on file: URLs.

  • UIProcess/mac/WKImmediateActionController.mm:

(-[WKImmediateActionController _defaultAnimationController]):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r259052 r259056  
     12020-03-26  Dean Jackson  <dino@apple.com>
     2
     3        Force Touch preview on file:/// URL works while clicking on the URL is blocked
     4        https://bugs.webkit.org/show_bug.cgi?id=209589
     5        <rdar://57687893>
     6
     7        Reviewed by Antoine Quint.
     8
     9        The immediate action for links should never trigger on file: URLs.
     10
     11        * UIProcess/mac/WKImmediateActionController.mm:
     12        (-[WKImmediateActionController _defaultAnimationController]):
     13
    1142020-03-26  Per Arne Vollan  <pvollan@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/mac/WKImmediateActionController.mm

    r254241 r259056  
    277277    String absoluteLinkURL = hitTestResult->absoluteLinkURL();
    278278    if (!absoluteLinkURL.isEmpty()) {
     279        if (WTF::protocolIs(absoluteLinkURL, "file")) {
     280            _type = kWKImmediateActionNone;
     281            return nil;
     282        }
     283
    279284        if (WTF::protocolIs(absoluteLinkURL, "mailto")) {
    280285            _type = kWKImmediateActionMailtoLink;
Note: See TracChangeset for help on using the changeset viewer.