Bug 67693

Summary: Buttons are not released if they are hidden before release
Product: [Applications] konqueror Reporter: Oded Arbel <oded>
Component: khtml ecmaAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Test case

Description Oded Arbel 2003-11-09 18:45:16 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Linux

When a button is pressed, its onclick event is triggered. if that event causes the button to stop being displayed (for example, by changing the "display" or "visibility" setting of the button or one of its containing blocks") then the button graphic is never "released" even as the mouse button is released. 
While the button 'onmouseup' event is fired correctly, the graphic is not updated and as a result, when the button is again displayed, the button graphic looks "pressed" until the mouse is moved over it.

See the test case attached - click "Open" to open the hidden element, then click "Close" to close it. when "Open" is clicked again the "Close" button graphic looks "pressed".
Comment 1 Oded Arbel 2003-11-09 18:45:57 UTC
Created attachment 3105 [details]
Test case
Comment 2 Tommi Tervo 2006-03-05 17:48:35 UTC
Seems to be fixed, works fine with pre 3.5.2 konqueror
Comment 3 Oded Arbel 2007-02-25 15:41:05 UTC
Might be related to the fix in Bug 68438, but currently the behaviour is that the button releases too early - less then half a second after the mouse button was clicked and before the mouse button was released. 

I've opened another bug report on this - Bug 142182. I need to come visit this again if 142182 will be fixed.