Closed Bug 665704 Opened 13 years ago Closed 8 years ago

dragleave not fired when dragging outside window

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 656164

People

(Reporter: gopalsharma, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

When you drag a file into a window, dragenter fires as expected, however, when you drag it outside the window, drag leave does not. If you hit the escape key, dragleave is fired. 

Reproducible: Always

Steps to Reproduce:
1. Open attached index.html file.
2. Drag a file from Finder into the window. If you check the console log, you will see dragenter and dragover are being filed as expected. 
3. Without letting go, drag the file outside the window. dragleave is not fired.

Actual Results:  
dragleave is not fired.

Expected Results:  
dragleave should be fired.
Attached file Test file.
Version: unspecified → 4.0 Branch
Gopal: I have Console turned on, but I am not seeing the the drag events logged to the console. Is there something special I have to do?
Summary: dragleave not fired when dragging outside window → [10.7] dragleave not fired when dragging outside window
Marcia: Not that I know of... I'm just using console.log() to log the messages. You should be seeing them in Firebug's console or in the Web Console (Cmd + Shift + K).
Does this problem also happen on other versions of OS X than 10.7
(like 10.6)?

Does it also happen on other OSes (like Windows or Linux)?

Does it happen with a current trunk nightly
(e.g. ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-central/firefox-7.0a1.en-US.mac.dmg)?
Attachment #540586 - Attachment mime type: text/plain → text/html
I am able to reproduce the problem on the following platform/browser combinations (I have not tried others):

Mac OS X 10.7 + Firefox 4 (the build listed above)
Mac OS X 10.7 + Nightly (the one you specified)

Mac OS X 10.6 + Firefox 4 (the build listed above)
Mac OS X 10.6 + Nightly (the one you specified)

Windows 7 + Firefox 4 (the build listed above)
Summary: [10.7] dragleave not fired when dragging outside window → dragleave not fired when dragging outside window
Component: General → DOM: Events
OS: Mac OS X → All
Product: Firefox → Core
QA Contact: general → events
Hardware: x86 → All
Version: 4.0 Branch → unspecified
Component: DOM: Events → Event Handling
Component: Event Handling → Drag and Drop
QA Contact: events → drag-drop
I've confirmed this (in a recent nightly) on OS X (10.6 and 10.7),
Windows and Linux.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hmm, I see dragleave on[object HTMLDivElement] Entries doing the last Step both on Trunk and on GC 14 on WinXP.
The testcase is misleading.  The problem doesn't happen with the "This is my dropzone ..." object.  It does happen dragging into and out of the rest of the page (from the desktop to that part of the page and back again).
> The problem doesn't happen with the "This is my dropzone ..."
> object.  It does happen dragging into and out of the rest of the
> page (from the desktop to that part of the page and back again).

Actually it *does* happen with the "This is my dropzone ..." object,
but only if you drag directly from the desktop onto and off of that
object.

And (as best I can tell) the problem doesn't happen with either part
of the page if you drag over a scrollbar.
I can still repro this bug on Windows 7 + Firefox 7.0.1.  Dragexit and dragleave are never triggered on the window, document, or fullscreen DOM element.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: