Joakim, you're right about pretty much everything you said about this bug, especially the part about it being tough to nail down. Additional things to notice: - This bug only happens with onmousedown (not onclick or onmouseup). - The div must have position:absolute for this bug to show up. - It doesn't matter if div starts out as visible or hidden.
I just ran into this same bug, and have narrowed down the circumstances a bit. Here are the details I've discovered: 1). the problem indeed only occurs for mousedown 3). the problem occurs when you mousedown on any type of element, not just images. 2). the problem occurs when, for the element you mousedown on, position: absolute OR position: relative. position: static is not affected. 4). the problem occurs when you mousedown on a child element. After that mousedown, it's ancestors will not be able to receive any mouse events 5). instead of ancestors receiving their own mouse events, they will all be targetted at the child element who first triggered the mousedown I've put together a little test case to further illustrate the problem which I'll attach in a second
Sounds like this one is yours joki, reassigning.
Lucky for you, joki, this bug seems to be fixed in M15. Woohoo!
Created attachment 7887 [details] testcase like first one, but shows the effect of _moving_ the div.
In the testcase I just added, mouse focus gets stolen when you click "move div" unless you move the mouse to put the mouseup inside the div.
nominating for nsbeta2 based on: - severity - visibility - major functionality broken
ckritzer, could you retest this to help PDT make a +/- call for beta2? Thanks.
Hmmnn... Just retested on: - MacOS9 2000-05-04-08-M16 Commercial Build - Linux6 2000-05-04-08-M16 Commercial Build - Win98 2000-05-04-09-M16 Commercial Build and here's what I've found: - 3rd testcase works great on all platforms - 2nd testcase still returns incorrect info - 1st testcase appears to hang up event firing when you do the following steps: 1) click on 'show div' text or 'show div' button 2) when the div appears, click on the 'hide div' text 3) div disappears, clicking on either group of text or buttons does not fire events...in fact, you don't even get the visible button-press action (button does not "push down" like you would expect it to)... So, the original bug/testcase still exists.
steps to reproduce bug using third testcase: 1. load http://bugzilla.mozilla.org/showattachment.cgi?attach_id=7887 2. click "show div" 3. click "move div right" within the div (the part that just appeared) 4. try selecting "text outside div" sorry for not giving steps earlier.. does the bug still not show up for you?
Putting on [nsbeta2+] radar for beta2 fix.
All three test cases work great for me right now on WinNT. ckritzer, could you reverify the problem? I checked in some stuff that may have impacted this right before 5/16. I want to get this checked on another platform before I mark it WORKSFORME. Thx.
works for me too (win98, 2000 052508)
Okay, I'm marking this worksforme.
Marking VERIFED WORKSFORME on: - MacOS9 2000-06-01-20-M16 Commercial Build - Linux6 2000-06-01-20-M16 Commercial Build - Win98 2000-06-01-21-M16 Commercial Build