Closed Bug 1556192 Opened 6 years ago Closed 6 years ago

Problems when dragging attachments: TypeError: target.matches is not a function

Categories

(Thunderbird :: Mail Window Front End, defect)

defect
Not set
normal

Tracking

(thunderbird68+ fixed, thunderbird69 fixed)

RESOLVED FIXED
Thunderbird 69.0
Tracking Status
thunderbird68 + fixed
thunderbird69 --- fixed

People

(Reporter: jorgk-bmo, Assigned: darktrojan)

References

Details

Attachments

(1 file)

+++ 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.

Summary: improvements/simplifications for MozAttachmentlist → Problems when dragging attachments: TypeError: target.matches is not a function
Type: task → defect
Assignee: nobody → geoff

I broke this fixing bustage in bug 1513110. The root of the problem is a function which could return an element or a string.

Attachment #9069845 - Flags: review?(mkmelin+mozilla)
Attachment #9069845 - Flags: approval-comm-beta?

Does this fix the "can't drag after last" issue?

Comment on attachment 9069845 [details] [diff] [review] 1556192-target-matches-1.diff It does, thanks!
Attachment #9069845 - Flags: review?(mkmelin+mozilla)
Attachment #9069845 - Flags: review+
Attachment #9069845 - Flags: approval-comm-beta?
Attachment #9069845 - Flags: approval-comm-beta+

(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

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 69.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: