Title: [222412] trunk/Source/WebKit
Revision
222412
Author
[email protected]
Date
2017-09-22 16:16:06 -0700 (Fri, 22 Sep 2017)

Log Message

Enable File and Directory Entries API at runtime
https://bugs.webkit.org/show_bug.cgi?id=176616
<rdar://problem/34330942>

Reviewed by Geoffrey Garen.

Enable File and Directory Entries API at runtime on Mac/WebKit2,
now that DataTransfer.items is enabled there.

* Shared/WebPreferencesDefinitions.h:

Modified Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (222411 => 222412)


--- trunk/Source/WebKit/ChangeLog	2017-09-22 23:13:47 UTC (rev 222411)
+++ trunk/Source/WebKit/ChangeLog	2017-09-22 23:16:06 UTC (rev 222412)
@@ -1,3 +1,16 @@
+2017-09-22  Chris Dumez  <[email protected]>
+
+        Enable File and Directory Entries API at runtime
+        https://bugs.webkit.org/show_bug.cgi?id=176616
+        <rdar://problem/34330942>
+
+        Reviewed by Geoffrey Garen.
+
+        Enable File and Directory Entries API at runtime on Mac/WebKit2,
+        now that DataTransfer.items is enabled there.
+
+        * Shared/WebPreferencesDefinitions.h:
+
 2017-09-22  Matt Lewis  <[email protected]>
 
         Unreviewed, rolling out r222394.

Modified: trunk/Source/WebKit/Shared/WebPreferencesDefinitions.h (222411 => 222412)


--- trunk/Source/WebKit/Shared/WebPreferencesDefinitions.h	2017-09-22 23:13:47 UTC (rev 222411)
+++ trunk/Source/WebKit/Shared/WebPreferencesDefinitions.h	2017-09-22 23:16:06 UTC (rev 222412)
@@ -136,8 +136,10 @@
 
 #if PLATFORM(COCOA)
 #define DEFAULT_DATA_TRANSFER_ITEMS_ENABLED true
+#define DEFAULT_DIRECTORY_UPLOAD_ENABLED true
 #else
 #define DEFAULT_DATA_TRANSFER_ITEMS_ENABLED false
+#define DEFAULT_DIRECTORY_UPLOAD_ENABLED false
 #endif
 
 // macro(KeyUpper, KeyLower, TypeNameUpper, TypeName, DefaultValue, HumanReadableName, HumanReadableDescription)
@@ -298,6 +300,8 @@
     macro(LegacyEncryptedMediaAPIEnabled, legacyEncryptedMediaAPIEnabled, Bool, bool, DEFAULT_LEGACY_ENCRYPTED_MEDIA_API_ENABLED, "Enable Legacy EME API", "Enable legacy EME API") \
     macro(AllowMediaContentTypesRequiringHardwareSupportAsFallback, allowMediaContentTypesRequiringHardwareSupportAsFallback, Bool, bool, DEFAULT_ALLOW_MEDIA_CONTENT_TYPES_REQUIRING_HARDWARE_SUPPORT_AS_FALLBACK, "Allow Media Content Types Requirining Hardware As Fallback", "Allow Media Content Types Requirining Hardware As Fallback") \
     macro(InspectorAdditionsEnabled, inspectorAdditionsEnabled, Bool, bool, false, "Web Inspector Additions", "Enable additional page APIs used by the Web Inspector frontend page") \
+    macro(DirectoryUploadEnabled, directoryUploadEnabled, Bool, bool, DEFAULT_DIRECTORY_UPLOAD_ENABLED, "Directory Upload", "input.webkitdirectory / dataTransferItem.webkitGetAsEntry()") \
+    macro(DataTransferItemsEnabled, dataTransferItemsEnabled, Bool, bool, DEFAULT_DATA_TRANSFER_ITEMS_ENABLED, "Data Transfer Items", "Enables DataTransferItem in the clipboard API") \
     macro(WebVREnabled, webVREnabled, Bool, bool, false, "WebVR", "WebVR Module support") \
     \
 
@@ -381,8 +385,6 @@
     macro(WebAnimationsEnabled, webAnimationsEnabled, Bool, bool, false, "Web Animations", "Web Animations prototype") \
     macro(WebGL2Enabled, webGL2Enabled, Bool, bool, false, "WebGL 2.0", "WebGL 2 prototype") \
     macro(WebGPUEnabled, webGPUEnabled, Bool, bool, false, "WebGPU", "WebGPU prototype") \
-    macro(DirectoryUploadEnabled, directoryUploadEnabled, Bool, bool, false, "Directory Upload", "input.webkitdirectory") \
-    macro(DataTransferItemsEnabled, dataTransferItemsEnabled, Bool, bool, DEFAULT_DATA_TRANSFER_ITEMS_ENABLED, "Data Transfer Items", "Enables DataTransferItem in the clipboard API") \
     macro(AsyncFrameScrollingEnabled, asyncFrameScrollingEnabled, Bool, bool, false, "Async Frame Scrolling", "Perform frame scrolling in a dedicated thread or process") \
     \
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to