Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1173)

Unified Diff: Source/core/html/forms/FileInputType.cpp

Issue 720403002: Let input tag filter out non-native files in dropped data. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix test. Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/html/forms/FileInputTypeTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/FileInputType.cpp
diff --git a/Source/core/html/forms/FileInputType.cpp b/Source/core/html/forms/FileInputType.cpp
index e26e55da239b8c0b749554b755b74ad80afc1be9..6196fb38c8af29839009cd4a0c6c656b75649b90 100644
--- a/Source/core/html/forms/FileInputType.cpp
+++ b/Source/core/html/forms/FileInputType.cpp
@@ -336,7 +336,7 @@ void FileInputType::receiveDropForDirectoryUpload(const Vector<String>& paths)
bool FileInputType::receiveDroppedFiles(const DragData* dragData)
{
Vector<String> paths;
- dragData->asFilenames(paths);
+ dragData->asFilePaths(paths);
if (paths.isEmpty())
return false;
« no previous file with comments | « no previous file | Source/core/html/forms/FileInputTypeTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698