Last Comment Bug 684431 - dragleave event not fired when drag is canceled with Esc
: dragleave event not fired when drag is canceled with Esc
: regression
Product: Core
Classification: Components
Component: Drag and Drop (show other bugs)
: unspecified
: All All
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
: Neil Deakin
Depends on: 591249
Blocks: 130078
  Show dependency treegraph
Reported: 2011-09-02 18:44 PDT by Eevee (Lexy Munroe) [:eevee]
Modified: 2011-09-29 09:49 PDT (History)
5 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Description User image Eevee (Lexy Munroe) [:eevee] 2011-09-02 18:44:35 PDT
Visit the URL.  Drag something (the given list elements, or a local file, or whatever) onto the trash can.  It becomes colored while the cursor is over it, and loses its color when the cursor leaves.  Now press Esc with the cursor still over the trash can to cancel the drag; the color remains.

The page has a very simple dragleave handler to remove the class that switches to the colored image.  It's not being called at all when the drag is canceled.

This seems to be a regression:
dragleave *is fired* in Fx 3.6 on WinXP/OSX.
dragleave is *not fired* in Fx 7 beta on Linux/WinXP/Win7 and Fx 5.0.0 on WinXP.

I haven't had a chance to narrow it down further.
Comment 1 User image Alice0775 White 2011-09-02 22:02:08 PDT
Regression window(cached m-c hourly)
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b5pre) Gecko/20100827 Firefox/4.0b5pre ID:20100827190212
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b5pre) Gecko/20100827 Firefox/4.0b5pre ID:20100827190555

In local build:
built from 4722b491cd0d : works
built from 687b70fea4d0 : Fails
built from 7804b5cf4313 : Fails
Triggered by:
Bug 130078 - integrate iframe into chrome view hierarchy (link view managers / trees between chrome and content)
Comment 2 User image Karl Tomlinson (:karlt) 2011-09-04 16:47:24 PDT
Mentioning bug 481737, but I don't know whether or not they both need the same solution.
Comment 3 User image Eevee (Lexy Munroe) [:eevee] 2011-09-04 17:34:30 PDT
Given the culprit, bug 591249 sounds strangely relevant, though it existed in 3.6.
Comment 4 User image Timothy Nikkel (:tnikkel) 2011-09-29 09:49:22 PDT
Should be fixed by bug 591249.

Note You need to log in before you can comment on or make changes to this bug.