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

Issue 217243003: Remove superfluous call to SetURL in DragDownloadItem. (Closed)

Created:
6 years, 9 months ago by dcheng
Modified:
6 years, 9 months ago
Reviewers:
Nico
CC:
chromium-reviews, benjhayden+dwatch_chromium.org, asanka
Visibility:
Public.

Description

Remove superfluous call to SetURL in DragDownloadItem. The download item code tried to be helpful and make sure Blink could navigate to download items dropped in a web contents by setting a file URL in the drop data. Unfortunately, this doesn't work because RenderViewHostImpl::DragTargetDragEnter filters out file URLs and rewrites it to about:blank, and Blink happily navigates there instead of the file. As it turns out, this is unnecessary because Blink already converts the filename to a URL when it attempts to turn drops into navigations so we get this behavior for free by omitting the call to SetURL. It also confuses some Linux file managers, causing them to link to the file instead of making a copy when the item is dragged from the download bar. BUG=356794 TEST=drag download bar items to the desktop (should copy) and to another Chrome window (should navigate) R=thakis@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260334

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -4 lines) Patch
M chrome/browser/download/drag_download_item_views.cc View 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dcheng
6 years, 9 months ago (2014-03-28 18:58:12 UTC) #1
Nico
Did you test windows and chromeos with this?
6 years, 9 months ago (2014-03-28 19:01:25 UTC) #2
dcheng
On 2014/03/28 19:01:25, Nico wrote: > Did you test windows and chromeos with this? In ...
6 years, 9 months ago (2014-03-28 20:15:55 UTC) #3
Nico
lgtm stamp with a good TEST= line describing how to manually test this
6 years, 9 months ago (2014-03-28 20:21:30 UTC) #4
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 9 months ago (2014-03-28 20:24:17 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/217243003/1
6 years, 9 months ago (2014-03-28 20:25:40 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-28 23:45:07 UTC) #7
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
6 years, 9 months ago (2014-03-28 23:45:07 UTC) #8
dcheng
The CQ bit was checked by dcheng@chromium.org
6 years, 9 months ago (2014-03-28 23:48:26 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dcheng@chromium.org/217243003/1
6 years, 9 months ago (2014-03-28 23:49:36 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-29 01:24:45 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-29 01:24:46 UTC) #12
dcheng
6 years, 9 months ago (2014-03-29 01:32:48 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 manually as r260334 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698