Closed Bug 674807 Opened 13 years ago Closed 3 years ago

dragexit event doesn't always fire

Categories

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

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: 52qtuqm9, Unassigned)

References

Details

Attachments

(5 obsolete files)

In an add-on I'm working on, I'm putting a dragexit event on the treechildren node within the folderTree vbox in thunderbird: var treechildren = document .getElementById("folderTree") .getElementsByTagName("treechildren")[0]; treechildren.addEventListener("dragexit", me.onDragExit, false); Right now, all me.onDragExit does is log a message indicating that it was called. If I move the mouse into and then out of the tree slowly while dragging, I see the message indicating that onDragExit was called. If, however, I move the mouse out of the tree quickly, at least half the time the handler does not get called. It subsequently gets called if I move the mouse across another element boundary, or when I release the drag. An unreliable dragexit event is highly sub-optimal. It's going to make my add-on somewhat flaky.
Status: NEW → UNCONFIRMED
Ever confirmed: false
This gets worse, although perhaps the following should be a separate bug and not the same bug as the one above... As far as I can tell, if I register event listeners for dragexit, dragdrop, mouseup, and mouseout on the treechildren node, then I get a dragexit event if the user lets go of the dragged item without dropping it (e.g., by trying to drop it into the folder it's already in, or by dropping it outside of the folder pane so no folder is selected), but if the user does actually drop it into a folder, then *none of the events above is triggered*, i.e., my code does not get notified by *any* event that the drop has completed. This makes it very difficult for my add-on to properly finish up the work it's trying to do when the user finishes a drop. It seems to me that either dragexit should always be sent, regardless of whether the drop was completed, or dragexit should be sent when the drop is aborted or dragdrop if it is completed. Add-on code needs to have *some* way of saying, "Let me know either way, whether the drop is aborted or completed."
Component: DOM: Events → Drag and Drop
QA Contact: events → drag-drop
Depends on: 1635018
Assignee: nobody → krosylight
Attachment #9233689 - Attachment description: Bug 674807 - Part 1: Disable dragexit event on Nightly → Bug 674807 - Part 1: Disable dragexit event on Nightly r=edgar
Attachment #9233693 - Attachment description: Bug 674807 - Part 5: Replace dragexit with dragleave in editor/libeditor/ → Bug 674807 - Part 5: Replace dragexit with dragleave in editor/libeditor/ r=masayuki
Attachment #9233690 - Attachment description: Bug 674807 - Part 2: Replace dragexit with dragleave in browser/ → Bug 674807 - Part 2: Replace dragexit with dragleave in browser/ r=gijs
See Also: → 1723119

Comment on attachment 9233689 [details]
Bug 674807 - Part 1: Disable dragexit event on Nightly r=edgar

Revision D121189 was moved to bug 1635018. Setting attachment 9233689 [details] to obsolete.

Attachment #9233689 - Attachment is obsolete: true

Comment on attachment 9233690 [details]
Bug 674807 - Part 2: Replace dragexit with dragleave in browser/ r=gijs

Revision D121190 was moved to bug 1635018. Setting attachment 9233690 [details] to obsolete.

Attachment #9233690 - Attachment is obsolete: true

Comment on attachment 9233691 [details]
Bug 674807 - Part 3: Remove redundant dragexit listener from browser/base/content

Revision D121191 was moved to bug 1635018. Setting attachment 9233691 [details] to obsolete.

Attachment #9233691 - Attachment is obsolete: true

Comment on attachment 9233692 [details]
Bug 674807 - Part 4: Replace dragexit with dragleave in devtools/

Revision D121192 was moved to bug 1635018. Setting attachment 9233692 [details] to obsolete.

Attachment #9233692 - Attachment is obsolete: true

Comment on attachment 9233693 [details]
Bug 674807 - Part 5: Replace dragexit with dragleave in editor/libeditor/ r=masayuki

Revision D121193 was moved to bug 1635018. Setting attachment 9233693 [details] to obsolete.

Attachment #9233693 - Attachment is obsolete: true

We want to remove dragexit, so I think this is wontfix.

Assignee: krosylight → nobody
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: