Problems when dragging attachments: TypeError: target.matches is not a function
Categories
(Thunderbird :: Mail Window Front End, defect)
Tracking
(thunderbird68+ fixed, thunderbird69 fixed)
People
(Reporter: jorgk-bmo, Assigned: darktrojan)
References
Details
Attachments
(1 file)
2.47 KB,
patch
|
jorgk-bmo
:
review+
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
+++ This bug was initially created as a clone of Bug #1547699 +++
+++ This bug was initially created as a clone of Bug #1523607 +++
This is the follow-up to bug 1547699 comment 7:
Dragging attachments in the attachment bucket gives:
JavaScript error: chrome://messenger/content/messengercompose/MsgComposeCommands.js, line 5825: TypeError: target.matches is not a function
Also, an attachment still can't be dragged to after the last item to it becomes the last item.
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
I broke this fixing bustage in bug 1513110. The root of the problem is a function which could return an element or a string.
Reporter | ||
Comment 2•6 years ago
|
||
Does this fix the "can't drag after last" issue?
Reporter | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #1)
I broke this fixing bustage in bug 1513110. The root of the problem is a
function which could return an element or a string.
Which function? If in c-c let's fix that.
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/cc7e364a2504
Check attachment bucket target in onDragOver and onDrop before using .matches. r=jorgk
Reporter | ||
Updated•6 years ago
|
Reporter | ||
Comment 6•6 years ago
|
||
The breaking change is this:
https://searchfox.org/comm-central/diff/15a2f2b33d87abbdd40b9fd81070bbf18c48ecab/mail/components/compose/content/MsgComposeCommands.js#5758
And the function is _adjustDropTarget()
here:
https://searchfox.org/comm-central/rev/66bdc4565824a8c59d34ba88c3d8e70448356a71/mail/components/compose/content/MsgComposeCommands.js#5720
Personally, I wouln't mess with it.
Reporter | ||
Comment 7•6 years ago
|
||
Description
•