Title: [96895] trunk/Source/WebCore
Revision
96895
Author
joep...@webkit.org
Date
2011-10-06 19:55:39 -0700 (Thu, 06 Oct 2011)

Log Message

Reviewed by Kent Tamura.

Pass "accept" mime type information into FileChooser at all call sites
https://bugs.webkit.org/show_bug.cgi?id=69592

No new tests. This only exposes some more information to
WebKit ports, no functionality change in WebCore.

* html/FileInputType.cpp:
(WebCore::FileInputType::receiveDropForDirectoryUpload):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (96894 => 96895)


--- trunk/Source/WebCore/ChangeLog	2011-10-07 02:48:47 UTC (rev 96894)
+++ trunk/Source/WebCore/ChangeLog	2011-10-07 02:55:39 UTC (rev 96895)
@@ -1,3 +1,16 @@
+2011-10-06  Joseph Pecoraro  <joep...@webkit.org>
+
+        Reviewed by Kent Tamura.
+
+        Pass "accept" mime type information into FileChooser at all call sites
+        https://bugs.webkit.org/show_bug.cgi?id=69592
+
+        No new tests. This only exposes some more information to
+        WebKit ports, no functionality change in WebCore.
+
+        * html/FileInputType.cpp:
+        (WebCore::FileInputType::receiveDropForDirectoryUpload):
+
 2011-10-06  Kent Tamura  <tk...@chromium.org>
 
         [JSC binding] Fix inconsistent behavior of DOMStringMap

Modified: trunk/Source/WebCore/html/FileInputType.cpp (96894 => 96895)


--- trunk/Source/WebCore/html/FileInputType.cpp	2011-10-07 02:48:47 UTC (rev 96894)
+++ trunk/Source/WebCore/html/FileInputType.cpp	2011-10-07 02:55:39 UTC (rev 96895)
@@ -327,6 +327,7 @@
         settings.allowsDirectoryUpload = true;
         settings.allowsMultipleFiles = true;
         settings.selectedFiles.append(paths[0]);
+        settings.acceptTypes = element()->accept();
         chrome->enumerateChosenDirectory(newFileChooser(settings));
     }
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to