[GTK][WPE] File and Directory Entries API is not enabled
https://bugs.webkit.org/show_bug.cgi?id=202796

Reviewed by Adrian Perez de Castro.

Enable by default the DirectoryUpload runtime setting that is
used to enable the APIs of the File and Directory Entries API.

Enable also the DataTransferItemsEnabled runtime setting that
exposes the DataTransferItem API. This makes the manual tests
available at https://w3c-test.org/entries-api mostly pass on
platform GTK (those tests need also the DataTransferItem API
to enable the drag-and-drop).

The bug <https://webkit.org/b/98940> for DataTransferItem API
remains open because the layout test editing/pasteboard/data-transfer-items.html
is still not passing completely. However other manual tests for
DataTransferItem pass after enabling it.

* Shared/WebPreferencesDefaultValues.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@251228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/Source/WebKit/ChangeLog b/Source/WebKit/ChangeLog
index 438772f..955152b 100644
--- a/Source/WebKit/ChangeLog
+++ b/Source/WebKit/ChangeLog
@@ -1,3 +1,26 @@
+2019-10-17  Carlos Alberto Lopez Perez  <clopez@igalia.com>
+
+        [GTK][WPE] File and Directory Entries API is not enabled
+        https://bugs.webkit.org/show_bug.cgi?id=202796
+
+        Reviewed by Adrian Perez de Castro.
+
+        Enable by default the DirectoryUpload runtime setting that is
+        used to enable the APIs of the File and Directory Entries API.
+
+        Enable also the DataTransferItemsEnabled runtime setting that
+        exposes the DataTransferItem API. This makes the manual tests
+        available at https://w3c-test.org/entries-api mostly pass on
+        platform GTK (those tests need also the DataTransferItem API
+        to enable the drag-and-drop).
+
+        The bug <https://webkit.org/b/98940> for DataTransferItem API
+        remains open because the layout test editing/pasteboard/data-transfer-items.html
+        is still not passing completely. However other manual tests for
+        DataTransferItem pass after enabling it.
+
+        * Shared/WebPreferencesDefaultValues.h:
+
 2019-10-17  Devin Rousso  <drousso@apple.com>
 
         Web Inspector: rework frontend agent construction to allow commands/events to be controlled by the related target's type
diff --git a/Source/WebKit/Shared/WebPreferencesDefaultValues.h b/Source/WebKit/Shared/WebPreferencesDefaultValues.h
index 49c5bb0..e4bd258 100644
--- a/Source/WebKit/Shared/WebPreferencesDefaultValues.h
+++ b/Source/WebKit/Shared/WebPreferencesDefaultValues.h
@@ -141,7 +141,7 @@
 #define DEFAULT_MODERN_MEDIA_CONTROLS_ENABLED false
 #endif
 
-#if PLATFORM(COCOA)
+#if PLATFORM(COCOA) || PLATFORM(GTK) || PLATFORM(WPE)
 #define DEFAULT_DATA_TRANSFER_ITEMS_ENABLED true
 #define DEFAULT_DIRECTORY_UPLOAD_ENABLED true
 #else