Closed Bug 53669 Opened 24 years ago Closed 24 years ago

html4 button won't accept click when it has focus

Categories

(Core :: DOM: UI Events & Focus Handling, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla0.8

People

(Reporter: jruderman, Assigned: joki)

References

Details

(Keywords: access, regression, Whiteboard: [rtm-])

Attachments

(2 files)

      No description provided.
Attached file test case
Click the html4 button twice, or drag out the first time and then try to click 
it again.  In both cases, you won't be able to click the second time.

Recent regression.  I'm using 2000 092111 on Windows 98, which is a generally 
horked (crash-on-exit) build, so this might just go away.
Summary: Button gets stuck → html4 button won't accept click when it has focus
Re-assigning six bugs from Clayton's list to Harish for further triage...
Assignee: clayton → harishd
Triaging Clayton's list:
------------------------
Changing component to Event Handling and assigning bug to joki. CCing saari.
Assignee: harishd → joki
Component: HTML Element → Event Handling
Confirmed (was going to write this up actually).  Also horked in Linux 2000-09-
27-10 and Mac OS 9.0.4 2000-09-26-04.  Very, very bad bug.  Sit!  Good bug...
Verified regression. Nominating for RTM. Inconsistency between buttons is 
bad, and most user's would probably not realize what is going on and what is 
the workaround. 

This would probably be easy to fix since HTML3 button does work, and because it 
is a regression it should be quite easy (if tedious) to find what checkin(s) 
broke it and fix it. 
Keywords: regression, rtm
I agree that this is a bad regression with high user visibility.  Marking rtm
need info.
Whiteboard: [rtm need info]
By the way, is this problem specific to <BUTTON> or does this include <INPUT
type="BUTTON"> as well?
This only happens in <button>-input type = button seems to work fine:
http://slip/projects/marvin/html/input_type_button.html
Okay, I think I have a fix for this but I need to run it by saari.  Attaching to 
bug report.
Status: NEW → ASSIGNED
Attached file Proposed fix
The change looks OK to me. I'm pretty sure that was only set to null to avoid
focus renotification/looping.
sr=vidur. Seems like a safe fix, confirmed by rigorous regression testing of
focus management.
Tom, this again can be checked into the trunk.

I spoke to jar about this and he doesn't feel this will be allowed into the rtm 
branch.

Marking rtm-.
Whiteboard: [rtm need info] → [rtm-]
*** Bug 54469 has been marked as a duplicate of this bug. ***
*** Bug 54469 has been marked as a duplicate of this bug. ***
I did a some comment to 54469 that might be somewhat useful
Changing Plat/OS to ALL.

Said comments from rods:

This is a style issue. 

The HTML4 button has these rules:

button {
 ...
  padding: 1px 1px 1px 1px;
}

button:active:hover {
 ...
  padding: 2px 0 0 2px;
}

So when you press it (active) it shifts things down and to the left. It does it 
fine the first time. The first time you can set a break point in 
nsHTMLButtonControlFrame:Reflow and it hits it, if you click a second time you 
never hit the break point. 

It looks like the event state manager is somehow figuring the state hasn't 
changed. This used to work.
OS: Windows 98 → All
Hardware: PC → All
cc'ing self. Sorry for the spam
Fix didn't make it in for 6.  I'll put it in now.
Target Milestone: --- → mozilla0.8
Reassigning QA Contact for all open and unverified bugs previously under Lorca's
care to Gerardo as per phone conversation this morning.
QA Contact: lorca → gerardok
r=saari
sr=jst, check this in!
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
QA contact updated
QA Contact: gerardok → madhur
verified on build 2001-07-24-06-trunk
Status: RESOLVED → VERIFIED
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: