Title: [244512] trunk/Source/WebKit
- Revision
- 244512
- Author
- [email protected]
- Date
- 2019-04-22 14:54:58 -0700 (Mon, 22 Apr 2019)
Log 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):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (244511 => 244512)
--- trunk/Source/WebKit/ChangeLog 2019-04-22 21:29:12 UTC (rev 244511)
+++ trunk/Source/WebKit/ChangeLog 2019-04-22 21:54:58 UTC (rev 244512)
@@ -1,3 +1,19 @@
+2019-04-22 David Quesada <[email protected]>
+
+ 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):
+
2019-04-22 Chris Dumez <[email protected]>
Unreviewed, rolling out r244502.
Modified: trunk/Source/WebKit/UIProcess/Cocoa/VersionChecks.h (244511 => 244512)
--- trunk/Source/WebKit/UIProcess/Cocoa/VersionChecks.h 2019-04-22 21:29:12 UTC (rev 244511)
+++ trunk/Source/WebKit/UIProcess/Cocoa/VersionChecks.h 2019-04-22 21:54:58 UTC (rev 244512)
@@ -68,7 +68,6 @@
FirstWithLazyGestureRecognizerInstallation = DYLD_IOS_VERSION_FIRST_WITH_LAZY_GESTURE_RECOGNIZER_INSTALLATION,
FirstWithProcessSwapOnCrossSiteNavigation = DYLD_IOS_VERSION_FIRST_WITH_PROCESS_SWAP_ON_CROSS_SITE_NAVIGATION,
FirstWithSnapshotAfterScreenUpdates = DYLD_IOS_VERSION_FIRST_WITH_SNAPSHOT_AFTER_SCREEN_UPDATES,
- FirstWhereDownloadAttributeDoesNotOverrideNavigationDelegate = DYLD_IOS_VERSION_FIRST_WHERE_DOWNLOAD_ATTRIBUTE_DOES_NOT_OVERRIDE_NAVIGATION_DELEGATE,
FirstWithDeviceOrientationAndMotionPermissionAPI = DYLD_IOS_VERSION_FIRST_WITH_DEVICE_ORIENTATION_AND_MOTION_PERMISSION_API,
FirstThatDecidesPolicyBeforeLoadingQuickLookPreview = DYLD_IOS_VERSION_FIRST_THAT_DECIDES_POLICY_BEFORE_LOADING_QUICK_LOOK_PREVIEW,
FirstWithExceptionsForRelatedWebViewsUsingDifferentDataStores = DYLD_IOS_VERSION_FIRST_WITH_EXCEPTIONS_FOR_RELATED_WEBVIEWS_USING_DIFFERENT_DATA_STORES,
@@ -80,7 +79,6 @@
FirstWithExpiredOnlyReloadBehavior = DYLD_MACOSX_VERSION_10_13,
FirstWithMainThreadReleaseAssertionInWebPageProxy = DYLD_MACOSX_VERSION_10_14,
FirstWithSnapshotAfterScreenUpdates = DYLD_MACOS_VERSION_FIRST_WITH_SNAPSHOT_AFTER_SCREEN_UPDATES,
- FirstWhereDownloadAttributeDoesNotOverrideNavigationDelegate = DYLD_MACOS_VERSION_FIRST_WHERE_DOWNLOAD_ATTRIBUTE_DOES_NOT_OVERRIDE_NAVIGATION_DELEGATE,
FirstWithExceptionsForRelatedWebViewsUsingDifferentDataStores = DYLD_MACOS_VERSION_FIRST_WITH_EXCEPTIONS_FOR_RELATED_WEBVIEWS_USING_DIFFERENT_DATA_STORES,
#endif
};
Modified: trunk/Source/WebKit/UIProcess/WebPageProxy.cpp (244511 => 244512)
--- trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2019-04-22 21:29:12 UTC (rev 244511)
+++ trunk/Source/WebKit/UIProcess/WebPageProxy.cpp 2019-04-22 21:54:58 UTC (rev 244512)
@@ -192,7 +192,6 @@
#include "RemoteLayerTreeScrollingPerformanceData.h"
#include "TouchBarMenuData.h"
#include "TouchBarMenuItemData.h"
-#include "VersionChecks.h"
#include "VideoFullscreenManagerProxy.h"
#include "VideoFullscreenManagerProxyMessages.h"
#include <WebCore/RunLoopObserver.h>
@@ -2751,7 +2750,7 @@
}
#if PLATFORM(COCOA)
- static const bool forceDownloadFromDownloadAttribute = !WebKit::linkedOnOrAfter(SDKVersion::FirstWhereDownloadAttributeDoesNotOverrideNavigationDelegate);
+ static const bool forceDownloadFromDownloadAttribute = false;
#else
static const bool forceDownloadFromDownloadAttribute = true;
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes