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

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: 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') | Source/core/page/DragData.h » ('J')
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..f650891cf029fb72d5e97e51249a101c47d9a9c3 100644
--- a/Source/core/html/forms/FileInputType.cpp
+++ b/Source/core/html/forms/FileInputType.cpp
@@ -33,6 +33,7 @@
#include "core/html/HTMLInputElement.h"
#include "core/html/forms/FormController.h"
#include "core/page/Chrome.h"
+#include "core/page/DragController.h"
tkent 2014/11/17 08:09:46 Remove this.
hirono 2014/11/17 08:14:44 Done.
#include "core/page/DragData.h"
#include "core/rendering/RenderFileUploadControl.h"
#include "platform/FileMetadata.h"
@@ -336,7 +337,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') | Source/core/page/DragData.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698