Changeset 244512 in webkit


Ignore:
Timestamp:
Apr 22, 2019 2:54:58 PM (5 years ago)
Author:
david_quesada@apple.com
Message:

Remove linked-on-or-after check for download attribute handling
https://bugs.webkit.org/show_bug.cgi?id=197176
rdar://problem/48459714

Reviewed by Alex Christensen.

There are no apps linked prior to this SDK version that are using the _WKDownload SPI,
so it doesn't make sense to preserve the old behavior of forcing download-attribute
links to start downloads.

  • UIProcess/Cocoa/VersionChecks.h:
  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::receivedNavigationPolicyDecision):

Location:
trunk/Source/WebKit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244510 r244512  
     12019-04-22  David Quesada  <david_quesada@apple.com>
     2
     3        Remove linked-on-or-after check for download attribute handling
     4        https://bugs.webkit.org/show_bug.cgi?id=197176
     5        rdar://problem/48459714
     6
     7        Reviewed by Alex Christensen.
     8
     9        There are no apps linked prior to this SDK version that are using the _WKDownload SPI,
     10        so it doesn't make sense to preserve the old behavior of forcing download-attribute
     11        links to start downloads.
     12
     13        * UIProcess/Cocoa/VersionChecks.h:
     14        * UIProcess/WebPageProxy.cpp:
     15        (WebKit::WebPageProxy::receivedNavigationPolicyDecision):
     16
    1172019-04-22  Chris Dumez  <cdumez@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/Cocoa/VersionChecks.h

    r244239 r244512  
    6969    FirstWithProcessSwapOnCrossSiteNavigation = DYLD_IOS_VERSION_FIRST_WITH_PROCESS_SWAP_ON_CROSS_SITE_NAVIGATION,
    7070    FirstWithSnapshotAfterScreenUpdates = DYLD_IOS_VERSION_FIRST_WITH_SNAPSHOT_AFTER_SCREEN_UPDATES,
    71     FirstWhereDownloadAttributeDoesNotOverrideNavigationDelegate = DYLD_IOS_VERSION_FIRST_WHERE_DOWNLOAD_ATTRIBUTE_DOES_NOT_OVERRIDE_NAVIGATION_DELEGATE,
    7271    FirstWithDeviceOrientationAndMotionPermissionAPI = DYLD_IOS_VERSION_FIRST_WITH_DEVICE_ORIENTATION_AND_MOTION_PERMISSION_API,
    7372    FirstThatDecidesPolicyBeforeLoadingQuickLookPreview = DYLD_IOS_VERSION_FIRST_THAT_DECIDES_POLICY_BEFORE_LOADING_QUICK_LOOK_PREVIEW,
     
    8180    FirstWithMainThreadReleaseAssertionInWebPageProxy = DYLD_MACOSX_VERSION_10_14,
    8281    FirstWithSnapshotAfterScreenUpdates = DYLD_MACOS_VERSION_FIRST_WITH_SNAPSHOT_AFTER_SCREEN_UPDATES,
    83     FirstWhereDownloadAttributeDoesNotOverrideNavigationDelegate = DYLD_MACOS_VERSION_FIRST_WHERE_DOWNLOAD_ATTRIBUTE_DOES_NOT_OVERRIDE_NAVIGATION_DELEGATE,
    8482    FirstWithExceptionsForRelatedWebViewsUsingDifferentDataStores = DYLD_MACOS_VERSION_FIRST_WITH_EXCEPTIONS_FOR_RELATED_WEBVIEWS_USING_DIFFERENT_DATA_STORES,
    8583#endif
  • trunk/Source/WebKit/UIProcess/WebPageProxy.cpp

    r244510 r244512  
    193193#include "TouchBarMenuData.h"
    194194#include "TouchBarMenuItemData.h"
    195 #include "VersionChecks.h"
    196195#include "VideoFullscreenManagerProxy.h"
    197196#include "VideoFullscreenManagerProxyMessages.h"
     
    27522751
    27532752#if PLATFORM(COCOA)
    2754     static const bool forceDownloadFromDownloadAttribute = !WebKit::linkedOnOrAfter(SDKVersion::FirstWhereDownloadAttributeDoesNotOverrideNavigationDelegate);
     2753    static const bool forceDownloadFromDownloadAttribute = false;
    27552754#else
    27562755    static const bool forceDownloadFromDownloadAttribute = true;
Note: See TracChangeset for help on using the changeset viewer.