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

Issue 2572023002: Remove special DataTransfer permissions for file: origins. (Closed)

Created:
4 years ago by pwnall
Modified:
4 years ago
Reviewers:
jsbell, dcheng
CC:
chromium-reviews, blink-reviews, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove special DataTransfer permissions for file: origins. Blink currently uses an overly permissive mode for DataTransfer instances given to the dragenter/dragover/dragleave event handlers of a page served from a file: origin. According to the specification, the DataTransfer instance should only allow limited metadata to be read. Blink allows the page to read all the drag information. This change aligns the DataTransfer mode used in these event handlers to the current drag and drop specification. BUG=104681 Committed: https://crrev.com/2cb1858d033ef1154182ca529e16703693ae9cf6 Cr-Commit-Position: refs/heads/master@{#439627}

Patch Set 1 : Pulled webkitdropzone changes to separate CL. #

Total comments: 2

Patch Set 2 : Feedback from dcheng. #

Total comments: 29

Patch Set 3 : jsbell feedback. #

Patch Set 4 : jsbell feedback, round 2. #

Messages

Total messages: 60 (47 generated)
pwnall
PTAL?
4 years ago (2016-12-16 09:12:34 UTC) #28
dcheng
The code change LG, but I'm not familiar enough with all the new promise stuff ...
4 years ago (2016-12-16 18:41:57 UTC) #31
pwnall
On 2016/12/16 18:41:57, dcheng wrote: > The code change LG, but I'm not familiar enough ...
4 years ago (2016-12-16 19:37:25 UTC) #34
pwnall
https://codereview.chromium.org/2572023002/diff/100001/third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html File third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html (right): https://codereview.chromium.org/2572023002/diff/100001/third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html#newcode62 third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html:62: dropWrapper.ondrop = (event) => event.preventDefault(); On 2016/12/16 18:41:57, dcheng ...
4 years ago (2016-12-16 19:37:39 UTC) #35
pwnall
jsbell: Can you please review the layout tests?
4 years ago (2016-12-16 19:58:28 UTC) #37
dcheng
code changes lgtm
4 years ago (2016-12-16 20:30:56 UTC) #38
jsbell
Comments in the first test file apply to the others as well. lgtm with various ...
4 years ago (2016-12-16 21:16:16 UTC) #39
pwnall
jsbell: PTAL? I think I've addressed much of your feedback, and I asked a couple ...
4 years ago (2016-12-17 00:44:49 UTC) #43
jsbell
lgtm You could optionally switch to Array.from() per below, but not a big deal. https://codereview.chromium.org/2572023002/diff/120001/third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html ...
4 years ago (2016-12-19 17:25:18 UTC) #47
pwnall
jsbell: Thank you very much for helping me make the tests cleaner! https://codereview.chromium.org/2572023002/diff/120001/third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html File third_party/WebKit/LayoutTests/fast/dnd/file-drag-drop-on-page.html ...
4 years ago (2016-12-19 21:51:19 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2572023002/160001
4 years ago (2016-12-20 00:02:34 UTC) #55
commit-bot: I haz the power
Committed patchset #4 (id:160001)
4 years ago (2016-12-20 00:08:56 UTC) #58
commit-bot: I haz the power
4 years ago (2016-12-20 00:10:58 UTC) #60
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2cb1858d033ef1154182ca529e16703693ae9cf6
Cr-Commit-Position: refs/heads/master@{#439627}

Powered by Google App Engine
This is Rietveld 408576698