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

Issue 720403002: Let input tag filter out non-native files in dropped data. (Closed)

Created:
6 years, 1 month ago by hirono
Modified:
6 years, 1 month ago
Reviewers:
tkent
CC:
blink-reviews, dglazkov+blink, blink-reviews-html_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Let input tag filter out non-native files in dropped data. To fix crbug.com/126766, we stopped to create snapshot files for non-natvie files at the beginning of drag operations. It causes files having empty paths are reaches to input tag, and thus renderer process crashes. BUG=407568 TEST=FileInputTypeTest.ignoreDroppedNonNativeFiles Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185434

Patch Set 1 #

Patch Set 2 : Add test. #

Total comments: 8

Patch Set 3 : Fixed. #

Patch Set 4 : Change the behavior so that FileInputType does not accept non-native file drop data. #

Total comments: 2

Patch Set 5 : Move getAcceptableDropFileNames to DragController. #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : Removed header. #

Patch Set 8 : Fix test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -15 lines) Patch
M Source/core/html/forms/FileInputType.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/forms/FileInputTypeTest.cpp View 1 2 3 4 5 6 7 2 chunks +34 lines, -0 lines 0 comments Download
M Source/core/page/DragController.cpp View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download
M Source/core/page/DragData.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/page/DragData.cpp View 1 2 3 4 5 1 chunk +5 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
hirono
Please take a look the CL? Thanks!
6 years, 1 month ago (2014-11-14 04:30:46 UTC) #2
tkent
https://codereview.chromium.org/720403002/diff/20001/Source/core/html/forms/FileInputType.cpp File Source/core/html/forms/FileInputType.cpp (right): https://codereview.chromium.org/720403002/diff/20001/Source/core/html/forms/FileInputType.cpp#newcode366 Source/core/html/forms/FileInputType.cpp:366: filesChosen(Vector<FileChooserFileInfo>()); This behavior looks inconsistent. If non-files are dropped, ...
6 years, 1 month ago (2014-11-14 06:49:27 UTC) #3
hirono
Thanks! https://codereview.chromium.org/720403002/diff/20001/Source/core/html/forms/FileInputType.cpp File Source/core/html/forms/FileInputType.cpp (right): https://codereview.chromium.org/720403002/diff/20001/Source/core/html/forms/FileInputType.cpp#newcode366 Source/core/html/forms/FileInputType.cpp:366: filesChosen(Vector<FileChooserFileInfo>()); On 2014/11/14 06:49:27, tkent wrote: > This ...
6 years, 1 month ago (2014-11-17 05:11:22 UTC) #4
tkent
https://codereview.chromium.org/720403002/diff/60001/Source/core/page/DragController.cpp File Source/core/page/DragController.cpp (right): https://codereview.chromium.org/720403002/diff/60001/Source/core/page/DragController.cpp#newcode57 Source/core/page/DragController.cpp:57: #include "core/html/forms/FileInputType.h" Please do not include FileInputType.h here. *InputType.h ...
6 years, 1 month ago (2014-11-17 05:21:37 UTC) #5
hirono
https://codereview.chromium.org/720403002/diff/60001/Source/core/page/DragController.cpp File Source/core/page/DragController.cpp (right): https://codereview.chromium.org/720403002/diff/60001/Source/core/page/DragController.cpp#newcode57 Source/core/page/DragController.cpp:57: #include "core/html/forms/FileInputType.h" On 2014/11/17 05:21:37, tkent wrote: > Please ...
6 years, 1 month ago (2014-11-17 05:59:25 UTC) #6
tkent
I'm sorry I still have comments requiring a major change. * We should remove DragData::numberOfFiles(). ...
6 years, 1 month ago (2014-11-17 06:45:08 UTC) #7
hirono
Thank you for catching the unused lines. Done!
6 years, 1 month ago (2014-11-17 07:50:34 UTC) #8
tkent
lgtm https://codereview.chromium.org/720403002/diff/100001/Source/core/html/forms/FileInputType.cpp File Source/core/html/forms/FileInputType.cpp (right): https://codereview.chromium.org/720403002/diff/100001/Source/core/html/forms/FileInputType.cpp#newcode36 Source/core/html/forms/FileInputType.cpp:36: #include "core/page/DragController.h" Remove this. https://codereview.chromium.org/720403002/diff/100001/Source/core/page/DragData.h File Source/core/page/DragData.h (right): ...
6 years, 1 month ago (2014-11-17 08:09:47 UTC) #9
hirono
https://codereview.chromium.org/720403002/diff/100001/Source/core/html/forms/FileInputType.cpp File Source/core/html/forms/FileInputType.cpp (right): https://codereview.chromium.org/720403002/diff/100001/Source/core/html/forms/FileInputType.cpp#newcode36 Source/core/html/forms/FileInputType.cpp:36: #include "core/page/DragController.h" On 2014/11/17 08:09:46, tkent wrote: > Remove ...
6 years, 1 month ago (2014-11-17 08:14:45 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/720403002/120001
6 years, 1 month ago (2014-11-17 08:15:53 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/33936)
6 years, 1 month ago (2014-11-17 08:26:51 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/720403002/140001
6 years, 1 month ago (2014-11-17 10:00:31 UTC) #16
commit-bot: I haz the power
6 years, 1 month ago (2014-11-17 12:20:45 UTC) #17
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as 185434

Powered by Google App Engine
This is Rietveld 408576698