Closed Bug 1207634 Opened 9 years ago Closed 9 years ago

Drag & drop a downloaded file from the Download Panel to the tab bar doesn't open a tab

Categories

(Core :: DOM: Copy & Paste and Drag & Drop, defect)

41 Branch
Unspecified
Windows
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
e10s - ---
firefox40 --- unaffected
firefox41 - wontfix
firefox42 + wontfix
firefox43 + wontfix
firefox44 + unaffected

People

(Reporter: epinal99-bugzilla2, Assigned: enndeakin)

References

Details

(Keywords: regression, Whiteboard: [mozfr-community])

Attachments

(2 obsolete files)

BOTH non-e10s and e10s mode are affected.

STR:
1) Download a file that could be read directly in Firefox (.jpg, .pdf e.g.)
2) Click on the down arrow to open the Download Panel
3) Drag&drop the downloaded file into the tab bar to open it

Result: drop fails and no tab is open with the downloaded file.

Regression range:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=44986f66ee4b590f1a5d7781828477f06ba400b6&tochange=8c81e97e0604b64de8fcd3c84a7a13274bfab0f2

Suspected bug:
Neil Deakin — Bug 1121946, Implement e10 cursor drag feedback on Windows, r=jmathies
Blocks: e10s
tracking-e10s: --- → ?
Flags: needinfo?(enndeakin)
This is a recent regression. I can confirm that dragging+dropping files from download panel into tab bar works in FF40 but not FF41. However, since there are workarounds like double-click to open or open using File menu -> "Open File", I do not believe this is so critical to fix in a dot release. This is a wontfix for 41.

Tracked for 42+.
Attached patch Possible patch (obsolete) (deleted) — Splinter Review
The issue here is that the download panel starts a drag only allowing 'copy' and 'move' actions, but the tabbrowser only allows 'link' drops.
Assignee: nobody → enndeakin
Flags: needinfo?(enndeakin)
This is one possible fix, to just allow any type for drags. I haven't tested it though as something is wrong with my Windows builds. Some are being created with this patch at https://treeherder.mozilla.org/#/jobs?repo=try&revision=694ff474abf6

Note that bug 1207594 is a similar and related bug, but would not be fixed by this patch. There, I am guessing that the data being dragged is actually plaintext that happens to be a url. Windows doesn't allow data that isn't a link on targets that only accept links.

An alternate patch that would allow the tabstrip to accept 'copy' could fix both bugs. I will investigate.
Setting affected flag to match duplicate bug, and 44 is affected. Setting tracking for 44 consistency.
Niel, what are your plans about this bug? Thanks
Flags: needinfo?(enndeakin)
Attached patch Better patch (obsolete) (deleted) — Splinter Review
This patch instead makes the tabbrowser use the 'link' drop effect only if there is a link present. It also removes setting the effectAllowed which doesn't do anything (setting effectAllowed is only relevant to the dragstart event)

An alternate is to have this change (change 'link' to 'move' or 'copy' if no link is being dragged) done within the Windows drag code. I am unable to test this on Windows right now, but may be able to in a couple of days.
Flags: needinfo?(enndeakin)
For beta, we can just back out bug 1121946, as it implements a feature which hasn't ever worked.

For others, I have several possible fixes and am trying to decide which one is better.
Comment on attachment 8666091 [details] [diff] [review]
Possible patch

After much thought I don't see why downloads don't allow the 'link' type. This is also the least risky fix despite not fixing bug 1207594.
Attachment #8666091 - Flags: review?(paolo.mozmail)
Comment on attachment 8666091 [details] [diff] [review]
Possible patch

I'd like to test this locally first, but will not be able before next week.

Flagging Marco as well, in case he wants to get to this review first.
Attachment #8666091 - Flags: review?(mak77)
The patch in bug 1207594 fixes both bugs but is a more involved fix.
(In reply to Neil Deakin from comment #10)
> After much thought I don't see why downloads don't allow the 'link' type.

One consequence may be that dragging a file to the Desktop on Windows might create a link by default instead of actually moving the file from the folder where it was downloaded? Just thinking aloud here.
See comment 9.
Flags: needinfo?(sledru)
As we are super late in the cycle (next build is RC), I think we will release 42 with this bug (like we did with 41). Bug 1121946 landed 4 months ago, not sure it is safe to backout it now.
Flags: needinfo?(sledru)
Status: NEW → ASSIGNED
> One consequence may be that dragging a file to the Desktop on Windows might
> create a link by default instead of actually moving the file from the folder
> where it was downloaded? Just thinking aloud here.

It should only do that if you press the modifier for a link.

Regardless since we don't need this for beta anymore, I think we can just go with the patch in 1207594.
Attachment #8675653 - Attachment is obsolete: true
Depends on: 1207594
This should be fixed now.
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment on attachment 8666091 [details] [diff] [review]
Possible patch

I've tried this locally. Now that the other bug is fixed, this change doesn't make any difference even in the interactions with Windows Explorer, so clearing the review request.
Attachment #8666091 - Flags: review?(paolo.mozmail)
Attachment #8666091 - Flags: review?(mak77)
Attachment #8666091 - Attachment is obsolete: true
Whiteboard: [mozfr-community]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: