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

Issue 10397002: DragEnter grants both read and navigate permissions to files. (Closed)

Created:
8 years, 7 months ago by Tom Sepez
Modified:
8 years, 7 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

DragEnter grants both read and navigate permissions to files. Calling ChildProcessSecurityPolicy::GrantReadFile() ought to be sufficient for the renderer to process files dragged into it. Giving the GrantRequestURL() permission is excessive. BUG=127525 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=137184

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -6 lines) Patch
M content/browser/renderer_host/render_view_host_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/renderer_host/render_view_host_unittest.cc View 1 2 2 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Tom Sepez
8 years, 7 months ago (2012-05-11 21:38:36 UTC) #1
abarth-chromium
Yeah, I think we were using GrantRequestURL before GrantFileRead existed. Can we test this change?
8 years, 7 months ago (2012-05-11 21:41:52 UTC) #2
Tom Sepez
That is the question of the moment. I don't have the answer for it.
8 years, 7 months ago (2012-05-11 21:43:56 UTC) #3
Tom Sepez
> That is the question of the moment. I don't have the answer for it. ...
8 years, 7 months ago (2012-05-14 17:16:48 UTC) #4
Charlie Reis
On 2012/05/14 17:16:48, Tom Sepez wrote: > > That is the question of the moment. ...
8 years, 7 months ago (2012-05-14 20:09:43 UTC) #5
Tom Sepez
> why isn't it catching this? Because the WebDropData::url member is treated differently than the ...
8 years, 7 months ago (2012-05-14 21:55:36 UTC) #6
Tom Sepez
Reviewers: Please review. Thanks.
8 years, 7 months ago (2012-05-14 23:08:25 UTC) #7
jam
On 2012/05/14 23:08:25, Tom Sepez wrote: > Reviewers: Please review. Thanks. I defer my lgtm ...
8 years, 7 months ago (2012-05-15 16:48:37 UTC) #8
abarth-chromium
LGTM. Sorry, I missed the fact that you added a test. Thanks!
8 years, 7 months ago (2012-05-15 18:17:27 UTC) #9
Charlie Reis
8 years, 7 months ago (2012-05-17 17:34:14 UTC) #10
LGTM, provided that's the intended behavior for the test.  (I'm not familiar
with the drag n drop API, but I found it surprising that DragEnter was
sufficient to grant FileRead, and that "drop" wasn't required.)

Powered by Google App Engine
This is Rietveld 408576698