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

Issue 423283003: Fix userVisibility() for files dragged into the renderer. (Closed)

Created:
6 years, 4 months ago by pwnall-personal
Modified:
6 years, 4 months ago
Reviewers:
tkent, dcheng
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink, kinuko+fileapi, nhiroki, tzik
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Fix userVisibility() for files dragged into the renderer. While trying to fix drag-and-drop for JS-created files, I broke drag-and-drop for real files. This change fixes userVisibility() for real files dragged into the renderer. This change also renames a couple of the File::create methods, to clarify their usage. BUG=398366 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179285

Patch Set 1 #

Patch Set 2 : Added test. #

Total comments: 16

Patch Set 3 : Addressed feedback. #

Total comments: 12

Patch Set 4 : Addressed 2nd round of feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -7 lines) Patch
M Source/core/clipboard/DataObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
A Source/core/clipboard/DataObjectTest.cpp View 1 2 3 1 chunk +162 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/fileapi/File.h View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/forms/FileInputType.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/FileSystemCallbacks.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
pwnall-personal
Kent-san, can you please take a look? Sorry for breaking this for everyone! I'll look ...
6 years, 4 months ago (2014-07-30 07:40:38 UTC) #1
tkent
Please add an automated test (layout test or unit test) Please do not use the ...
6 years, 4 months ago (2014-07-30 07:47:08 UTC) #2
pwnall-personal
On 2014/07/30 07:47:08, tkent wrote: > Please add an automated test (layout test or unit ...
6 years, 4 months ago (2014-07-30 13:31:03 UTC) #3
tkent
On 2014/07/30 13:31:03, pwnall wrote: > On 2014/07/30 07:47:08, tkent wrote: > > Please add ...
6 years, 4 months ago (2014-07-30 23:32:09 UTC) #4
pwnall-personal
On 2014/07/30 23:32:09, tkent wrote: > If it's hard to write a layout test, please ...
6 years, 4 months ago (2014-07-30 23:38:44 UTC) #5
dcheng
On 2014/07/30 at 23:38:44, costan wrote: > On 2014/07/30 23:32:09, tkent wrote: > > If ...
6 years, 4 months ago (2014-07-30 23:48:08 UTC) #6
tkent
> On the other hand, I can't figure out a way to check for userVisibility() ...
6 years, 4 months ago (2014-07-30 23:56:02 UTC) #7
pwnall-personal
On 2014/07/30 23:48:08, dcheng (OOO) wrote: > How come you can't use eventSender.beginDragWithFiles() in conjunction ...
6 years, 4 months ago (2014-07-30 23:57:46 UTC) #8
pwnall-personal
Thank you very much for your quick feedback, Kent-san! I'll clean up this patch and ...
6 years, 4 months ago (2014-07-31 01:03:23 UTC) #9
pwnall-personal
I hope that I have addressed all the feedback. Can you please take another look? ...
6 years, 4 months ago (2014-07-31 01:31:26 UTC) #10
tkent
> FWIW, this is what led me to put the test there: > https://code.google.com/p/chromium/codesearch#chromium/src/third_party/WebKit/Source/web/web.gypi&sq=package:chromium&l=269 I ...
6 years, 4 months ago (2014-07-31 01:41:15 UTC) #11
pwnall-personal
Thank you for the quick and thorough 2nd round of feedback, Kent-san! Can you please ...
6 years, 4 months ago (2014-07-31 02:04:33 UTC) #12
tkent
lgtm
6 years, 4 months ago (2014-07-31 02:06:12 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/costan@gmail.com/423283003/60001
6 years, 4 months ago (2014-07-31 02:06:44 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_dbg on tryserver.blink ...
6 years, 4 months ago (2014-07-31 03:08:34 UTC) #15
commit-bot: I haz the power
Change committed as 179285
6 years, 4 months ago (2014-07-31 04:10:18 UTC) #16
dcheng
On 2014/07/31 at 04:10:18, commit-bot wrote: > Change committed as 179285 Not sure how I ...
6 years, 4 months ago (2014-07-31 04:48:36 UTC) #17
pwnall-personal
On 2014/07/31 04:48:36, dcheng (OOO) wrote: > On 2014/07/31 at 04:10:18, commit-bot wrote: > > ...
6 years, 4 months ago (2014-07-31 15:46:41 UTC) #18
dcheng
On 2014/07/31 at 15:46:41, costan wrote: > On 2014/07/31 04:48:36, dcheng (OOO) wrote: > > ...
6 years, 4 months ago (2014-07-31 17:23:48 UTC) #19
pwnall-personal
On 2014/07/31 17:23:48, dcheng (OOO) wrote: > There's already a fake test platform installed for ...
6 years, 4 months ago (2014-07-31 17:41:10 UTC) #20
dcheng
On 2014/07/31 at 17:41:10, costan wrote: > On 2014/07/31 17:23:48, dcheng (OOO) wrote: > > ...
6 years, 4 months ago (2014-07-31 17:42:07 UTC) #21
pwnall-personal
On 2014/07/31 17:42:07, dcheng (OOO) wrote: > On 2014/07/31 at 17:41:10, costan wrote: > > ...
6 years, 4 months ago (2014-07-31 17:44:37 UTC) #22
pwnall-personal
6 years, 4 months ago (2014-08-01 02:00:14 UTC) #23
Message was sent while issue was closed.
On 2014/07/31 17:44:37, pwnall wrote:
> On 2014/07/31 17:42:07, dcheng (OOO) wrote:
> > On 2014/07/31 at 17:41:10, costan wrote:
> > > On 2014/07/31 17:23:48, dcheng (OOO) wrote:
> > > > There's already a fake test platform installed for unit tests
> > > >
> >
>
(https://code.google.com/p/chromium/codesearch#chromium/src/content/test/test_...).
> > > > I'm guessing this complexity is mainly due to the fact that the default
> MIME
> > > > registry doesn't recognize the .cpp extension. If the test file was a
.txt
> > file
> > > > instead of a .cpp, would that eliminate the need for all these stubs?
> > > 
> > > Ah, is that the platform used by the blink unit tests?
> > > If so, I think it only needs a mock blob registry.
> > > 
> > > I was tempted to inherit from it, but I thought I can't depend on content/
> > from blink.
> > 
> > I would just update content to instantiate a blob registry for tests as
well.
> It
> > will be useful for other tests too.
> 
> For sure. I'll go that route. Thank you!


For posterity, this is happening.

Chromium-side CL: https://codereview.chromium.org/434833002/
Blink-side CL: https://codereview.chromium.org/434823002/

Powered by Google App Engine
This is Rietveld 408576698