Title: [222830] trunk/Source/WebCore
Revision
222830
Author
[email protected]
Date
2017-10-03 22:15:29 -0700 (Tue, 03 Oct 2017)

Log Message

Enable pasteboard custom data in macOS 10.12 and earlier
https://bugs.webkit.org/show_bug.cgi?id=177855

Reviewed by Wenson Hsieh.

Make customPasteboardDataEnabled return true on macOS 10.12 and earlier as long as the app is Safari.

* page/Settings.cpp:
(WebCore::Settings::customPasteboardDataEnabled):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (222829 => 222830)


--- trunk/Source/WebCore/ChangeLog	2017-10-04 03:33:25 UTC (rev 222829)
+++ trunk/Source/WebCore/ChangeLog	2017-10-04 05:15:29 UTC (rev 222830)
@@ -1,3 +1,15 @@
+2017-10-03  Ryosuke Niwa  <[email protected]>
+
+        Enable pasteboard custom data in macOS 10.12 and earlier
+        https://bugs.webkit.org/show_bug.cgi?id=177855
+
+        Reviewed by Wenson Hsieh.
+
+        Make customPasteboardDataEnabled return true on macOS 10.12 and earlier as long as the app is Safari.
+
+        * page/Settings.cpp:
+        (WebCore::Settings::customPasteboardDataEnabled):
+
 2017-10-03  Jon Davis  <[email protected]>
 
         Update several features to "Supported"

Modified: trunk/Source/WebCore/page/Settings.cpp (222829 => 222830)


--- trunk/Source/WebCore/page/Settings.cpp	2017-10-04 03:33:25 UTC (rev 222829)
+++ trunk/Source/WebCore/page/Settings.cpp	2017-10-04 05:15:29 UTC (rev 222830)
@@ -150,9 +150,10 @@
     std::call_once(initializeCustomPasteboardDataToDefaultValue, [] {
 #if PLATFORM(IOS) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110300
         gCustomPasteboardDataEnabled = IOSApplication::isMobileSafari() || dyld_get_program_sdk_version() >= DYLD_IOS_VERSION_11_3;
-#elif PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101304
-        // FIXME: Update this linked-on check once the correct macro is in the SDK.
+#elif PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300
         gCustomPasteboardDataEnabled = MacApplication::isSafari() || dyld_get_program_sdk_version() > DYLD_MACOSX_VERSION_10_13;
+#elif PLATFORM(MAC)
+        gCustomPasteboardDataEnabled = MacApplication::isSafari();
 #else
         gCustomPasteboardDataEnabled = false;
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to