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.
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?
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)?
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)
Forgot to add: Windows 7 + Nightly (http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-trunk/firefox-7.0a1.en-US.win64-x86_64.installer.exe)
I've confirmed this (in a recent nightly) on OS X (10.6 and 10.7), Windows and Linux.
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.
See also bug 656164.
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.