Can no longer drag and drop links as attachments [regression]
Categories
(Thunderbird :: Message Compose Window, defect)
Tracking
(thunderbird_esr78 wontfix, thunderbird88 fixed)
People
(Reporter: ossman, Assigned: lasana)
References
Details
(Keywords: regression)
Attachments
(1 file, 5 obsolete files)
|
2.54 KB,
patch
|
lasana
:
review+
rjl
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Steps to reproduce:
- Open new message
- Drag link to .zip file from Firefox to attachment box
Actual results:
Attachment box was displayed, but nothing was added.
Expected results:
.zip file was added as an attachment.
| Reporter | ||
Comment 1•5 years ago
|
||
Seen with thunderbird-78.3.1-1.fc31.x86_64.
This is a regression. Previous version 68.11.0 worked just fine.
This is a major hindrance for the work flow here where we attach files from an internal web page regularly. A workaround would be much appreciated.
| Reporter | ||
Comment 2•5 years ago
|
||
Also note that using "Attach Web Page" still works, although it is not nearly as convenient and it also uses the entire URL as the filename and not just the final path component.
Comment 3•5 years ago
|
||
Yes, works OK on 68.10.0 but broken on a daily 83.0a1. I don't have a 78 installed but you are probably right that it's broken there too. Confirming as a probable regression.
Updated•5 years ago
|
| Reporter | ||
Comment 4•5 years ago
|
||
Any insight in to what might have happened? Any better way to work around it?
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Comment 6•5 years ago
|
||
Comment 7•5 years ago
•
|
||
It's showing strange behavior. Without flex:1 styling, drop event is not getting fired.
Comment 8•5 years ago
|
||
Comment 9•5 years ago
|
||
Comment 10•5 years ago
|
||
I am able to do it in the given link URL as well as Zip files. Can you try to drag and drop links/attachments from any other mail in the Thunderbird to the message compose window?
Comment 11•5 years ago
|
||
For me I can drag/drop these OK with 68 but not with the patch applied to trunk:
https://file-examples.com/index.php/text-files-and-archives-download/
With patch applied, nothing appears in the attachment box when I drop a link.
Comment 12•5 years ago
|
||
| Reporter | ||
Comment 13•4 years ago
|
||
Is someone still looking at this? It's unfortunately a major nuisance here. :/
Updated•4 years ago
|
| Assignee | ||
Comment 14•4 years ago
|
||
I don't understand exactly what's broken here. Are you trying to:
-
drag an actual link from the browser to the message compose window and have it show up as a "Web Page" attachment? The work around for that is the the menu
Attach > Web Page. -
or are you trying to drag a zip file downloaded via the browser and have it attached to a message?
| Reporter | ||
Comment 15•4 years ago
|
||
The first one. And Attach > Web Page is indeed a work around, albeit a cumbersome one. It's extra steps, primarily because it behaves differently with regards to naming. It includes the full URL, whilst dragging just keeps the basename.
| Assignee | ||
Comment 16•4 years ago
|
||
This seems to be broken along the same reasons as bug 1683460. The mime expected for links is "x-moz-url" but they can come in as "text/uri-list" too.
The use of the link display as the attachment name depends on the source of the data transfer including it in the url data, separated from the actual url via a newline. This looks like a mozilla specific convention for "x-moz-url" and is unlikely to be available when receiving "text/uri-list".
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 17•4 years ago
|
||
A side effect of this patch is, the link gets included in the attachment list but it also gets added to the editor area. This wasn't a problem when the attachment area was confined to a small box. Anyway around that Alex, Magnus?
| Reporter | ||
Comment 18•4 years ago
|
||
(In reply to Lasana Murray from comment #16)
The use of the link display as the attachment name depends on the source of the data transfer including it in the url data, separated from the actual url via a newline. This looks like a mozilla specific convention for "x-moz-url" and is unlikely to be available when receiving "text/uri-list".
That's unfortunate. Could this be added as a feature request in that case? The full URL is likely not of much value to the recipient so a simple filename is very much preferred.
And I assume Firefox has stopped providing "x-moz-url" complete so it's not a format Thunderbird can prefer over "text/uri-list"?
Comment 19•4 years ago
|
||
Updated•4 years ago
|
| Assignee | ||
Comment 20•4 years ago
|
||
I changed it to display for anything in the flavours list.
| Assignee | ||
Comment 21•4 years ago
|
||
On second thought, just the text/uri-list content type. Bringing up the overlay obscures drop addresses in the To fields etc.
Comment 22•4 years ago
|
||
| Assignee | ||
Comment 23•4 years ago
|
||
Fix typo.
| Assignee | ||
Updated•4 years ago
|
Comment 24•4 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/c1c9a00072a5
Support text/uri-list in compose window drag and drop. r=aleca
Updated•4 years ago
|
| Reporter | ||
Comment 25•4 years ago
|
||
Nice, thanks!
Did this also include handling of the name? Or should I file a separate entry for this?
| Assignee | ||
Comment 26•4 years ago
|
||
(In reply to Pierre Ossman from comment #25)
Nice, thanks!
Did this also include handling of the name? Or should I file a separate entry for this?
You can but I don't think there is much that could be done about the link name. The code to detect it is still there but the content type of the drop is entirely dependent on the source and you can probably expect the more standard text/uri-list than x-moz-url in most cases.
Comment 27•4 years ago
|
||
Comment on attachment 9210742 [details] [diff] [review]
bug1676094.patch
[Triage Comment]
Required dependency for bug 1699051.
Comment 28•4 years ago
|
||
| bugherder uplift | ||
Thunderbird 88.0b2:
https://hg.mozilla.org/releases/comm-beta/rev/aaa6bead19f8
Updated•4 years ago
|
| Reporter | ||
Comment 29•3 years ago
|
||
I've upgraded to Thunderbird 91.9.0, and I'm afraid the issue is still not resolved. :/
Can we get a reopen on this? Or should I file a new bug?
| Reporter | ||
Comment 30•3 years ago
|
||
Note that this regressed again in 91.3. Before that, it did indeed work. See this downstream report:
Comment 31•3 years ago
|
||
This was completely reworked and fixed in 102, in bug 1766073.
We will release 102 next month, so there's no need for an uplift.
| Reporter | ||
Comment 32•3 years ago
|
||
Great! Thanks for the update.
Description
•