Closed Bug 42675 Opened 24 years ago Closed 24 years ago

Ender lite doesn't send out onchange events

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: pollmann, Assigned: mjudge)

References

()

Details

(Keywords: regression, Whiteboard: [nsbeta2+])

When duping or reassigning a bug usually it goes something like:

Click inside text field labeled "Reassign bug to"
Type email address
Click Commit button

As you click the commit button, the focus will leave the text field and cause an 
onchange event to be fired.  This will select the radio to the left.

Ender Lite is not generating these onchange events as focus leaves a text input 
(It should iff text has changed).  This means the radio is never selected and 
the bug is not reassigned.

Here's a reduced test case:
<FORM>
 <INPUT TYPE=text ONCHANGE="alert('Change detected.\n');">
</FORM>

Type in the input, click elsewhere.  You should get an alert!
See nsGfxTextControlFrame's nsEnderEventListener::Blur.
The code was in there to detect if the text had changed and send out an onchange 
event.
In nsGfxTextControlFrame2::SubmitAttempt() You should also call the Blur method 
or otherwise check if the text has changed and send out an onchange.

(I would reopen bug 18501, but this is really a simple thing, so we can track it 
here just as well.)
Nominating for nsbeta2 because this breaks a lot of sites, including regressing 
bug 18501 which was nsbeta2+
Keywords: nsbeta2, regression
See also bug 42529.  Even after you get this working, you probably won't see 
bugzilla reports working until 42529 is fixed.  The simplified test case will 
work when this bug is fixed though.
[nsbeta2+]
Whiteboard: [nsbeta2+]
setting to m16, where + bugs live
Target Milestone: --- → M16
M16 has been out for a while now, these bugs target milestones need to be 
updated.
moving over to m17, adjusted priority and severity
Severity: major → critical
Priority: P3 → P1
Target Milestone: M16 → M17
No longer blocks: 43893
Blocks: 43893
this is working except that textAREAS are not getting focus or blur events. just 
the text input fields. wont resolve bug until i figure out why.
Status: NEW → ASSIGNED
*** Bug 44083 has been marked as a duplicate of this bug. ***
dishes are dun dude.  neeeext..
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Sweeeet...  :)  Also if not done already, please test this with bug 18501.  See 
my comment about "SubmitAttempt()" above.
No longer blocks: 43893
verified:

2000-07-06-09-M17 - WinNT
2000-07-06-08-M17 - Mac
2000-07-06-08-M17 - Linux
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.