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

Issue 2565283002: Fix webkitGetEntry for non-native files. (Closed)

Created:
4 years ago by hirono
Modified:
4 years ago
Reviewers:
kinuko, hashimoto, satorux1, tzik
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, tzik, nasko+codewatch_chromium.org, jam, dcheng, blink-reviews-api_chromium.org, haraken, dglazkov+blink, darin-cc_chromium.org, nhiroki, blink-reviews, kinuko+fileapi
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix webkitGetEntry for non-native files. Previously webkitGetEntry was broken for non-native files. The method creates FileEntry in isolated file system from DataTransferItem. The problem is DataTransferItem only has file system ID of isolated file system containing native files, though the browser process prepares different isolated file system for non-native files. The CL adds new field 'fileSystemId' for types representing a non-native file and let webkitGetEntry refer the fileSystemId so that it can return valid FileEntry for non-native files. BUG=671811 TEST=Drop a file from Chrome OS Files app to Google Drive web. Committed: https://crrev.com/da08349d4b87496c619152256ab039f6f6d2f28b Cr-Commit-Position: refs/heads/master@{#438455}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 9

Patch Set 4 : . #

Total comments: 4

Patch Set 5 : Fix nits. #

Patch Set 6 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -48 lines) Patch
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 3 chunks +6 lines, -1 line 0 comments Download
M content/common/drag_traits.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/drop_data.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/drop_data_builder.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataObject.h View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataObject.cpp View 1 2 3 4 5 6 chunks +31 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataObjectItem.h View 1 2 3 4 3 chunks +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataObjectItem.cpp View 1 2 3 2 chunks +17 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DataObjectTest.cpp View 1 2 3 3 chunks +33 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DraggedIsolatedFileSystem.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/clipboard/DraggedIsolatedFileSystem.cpp View 1 chunk +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DataTransferItemFileSystem.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.h View 1 2 2 chunks +7 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DraggedIsolatedFileSystemImpl.cpp View 1 2 chunks +17 lines, -17 lines 0 comments Download
M third_party/WebKit/public/platform/WebDragData.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 37 (25 generated)
hirono
hashimoto@-san, could you take a look at this? Thank you!
4 years ago (2016-12-12 04:54:06 UTC) #10
hashimoto
+kinuko@ should be a better reviewer. I have touched WebKit code only a few times, ...
4 years ago (2016-12-12 05:55:39 UTC) #12
satorux1
+tzik as kinuko may not be able to take a look.
4 years ago (2016-12-12 06:24:01 UTC) #14
kinuko
https://codereview.chromium.org/2565283002/diff/40001/content/public/common/drop_data.h File content/public/common/drop_data.h (right): https://codereview.chromium.org/2565283002/diff/40001/content/public/common/drop_data.h#newcode34 content/public/common/drop_data.h:34: base::string16 filesystem_id; On 2016/12/12 05:55:39, hashimoto wrote: > IIUC ...
4 years ago (2016-12-12 08:03:35 UTC) #17
hirono
Thank you! https://codereview.chromium.org/2565283002/diff/40001/content/public/common/drop_data.h File content/public/common/drop_data.h (right): https://codereview.chromium.org/2565283002/diff/40001/content/public/common/drop_data.h#newcode34 content/public/common/drop_data.h:34: base::string16 filesystem_id; On 2016/12/12 08:03:35, kinuko wrote: ...
4 years ago (2016-12-13 08:12:13 UTC) #20
kinuko
lgtm https://codereview.chromium.org/2565283002/diff/60001/third_party/WebKit/Source/core/clipboard/DataObject.cpp File third_party/WebKit/Source/core/clipboard/DataObject.cpp (right): https://codereview.chromium.org/2565283002/diff/60001/third_party/WebKit/Source/core/clipboard/DataObject.cpp#newcode308 third_party/WebKit/Source/core/clipboard/DataObject.cpp:308: } nit: no need of { } for ...
4 years ago (2016-12-13 14:45:10 UTC) #23
hirono
Thank you! https://codereview.chromium.org/2565283002/diff/60001/third_party/WebKit/Source/core/clipboard/DataObject.cpp File third_party/WebKit/Source/core/clipboard/DataObject.cpp (right): https://codereview.chromium.org/2565283002/diff/60001/third_party/WebKit/Source/core/clipboard/DataObject.cpp#newcode308 third_party/WebKit/Source/core/clipboard/DataObject.cpp:308: } On 2016/12/13 14:45:10, kinuko wrote: > ...
4 years ago (2016-12-14 04:54:55 UTC) #24
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/2565283002/80001
4 years ago (2016-12-14 04:55:20 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/122565) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-14 04:57:07 UTC) #29
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/2565283002/100001
4 years ago (2016-12-14 05:42:50 UTC) #32
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years ago (2016-12-14 07:36:51 UTC) #35
commit-bot: I haz the power
4 years ago (2016-12-14 07:38:48 UTC) #37
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/da08349d4b87496c619152256ab039f6f6d2f28b
Cr-Commit-Position: refs/heads/master@{#438455}

Powered by Google App Engine
This is Rietveld 408576698