Closed
Bug 239275
Opened 21 years ago
Closed 21 years ago
select object's onchange event fires without change
Categories
(Camino Graveyard :: HTML Form Controls, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Camino0.9
People
(Reporter: shy, Assigned: mikepinkerton)
References
Details
(Keywords: testcase)
Attachments
(2 files, 1 obsolete file)
209 bytes,
text/html
|
Details | |
793 bytes,
patch
|
jaas
:
review+
bryner
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040317 Camino/0.7+
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7b) Gecko/20040317 Camino/0.7+
With a select object, when selecting the same option that already had been
selected, Camino wrongly fires the onchange event.
No other browaser does that.
Reproducible: Always
Steps to Reproduce:
1. Click on a select object, thus expanding it
2. Select the already active option
Actual Results:
onchange is fired
Expected Results:
it shouldn't
Reporter | ||
Comment 1•21 years ago
|
||
Assignee | ||
Comment 2•21 years ago
|
||
shouldn't be too hard to fix in the native popup list form control code
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → Camino0.9
Comment 3•21 years ago
|
||
first time i've sent in a patch but I think this is correct
Updated•21 years ago
|
Attachment #158141 -
Flags: review?(joshmoz)
Assignee | ||
Comment 4•21 years ago
|
||
doesn't this stop it from firing any action if there is already a selection?
Comment 5•21 years ago
|
||
selected is for that specific option not all options.
Found another bug, onclick doesn't appear to fire at all. Thats prior to this
patch, I'll see how complicated it is to fix and file another bug if appropriate.
I looked at the patch, but I don't have time to get the background I'd need to
say whether or not this change is safe. Anybody know why this sort of code is in
Camino's embedding and not part of cocoa widgets (mozilla/widgets)?
Comment on attachment 158141 [details] [diff] [review]
patch to stop onchange event triggering for already selected element
I'd rather the review came from someone else for this one...
Attachment #158141 -
Flags: review?(joshmoz) → review?(timeless)
Attachment #158141 -
Flags: review?(joshmoz)
Comment on attachment 158141 [details] [diff] [review]
patch to stop onchange event triggering for already selected element
Time to get this one in - this needs careful reviewing and a good amount of
testing.
Attachment #158141 -
Flags: review?(me)
Comment 9•21 years ago
|
||
Comment on attachment 158141 [details] [diff] [review]
patch to stop onchange event triggering for already selected element
This just gives me "malformed patch" when I attempt to apply. Am I doing
something wrong, or is this attachment only partially uploaded, or what?
Attachment #158141 -
Flags: review?(me) → review-
Comment 10•21 years ago
|
||
I'm not saying I reviewed this patch for correctness, but the patch I am
attaching applies correctly.
Attachment #158141 -
Attachment is obsolete: true
Attachment #158141 -
Flags: review?(timeless)
Attachment #158141 -
Flags: review?(joshmoz)
Attachment #164657 -
Flags: review?(me)
Attachment #164657 -
Flags: review?(me) → review+
Comment 11•21 years ago
|
||
looks good to me r=josh
Updated•21 years ago
|
Attachment #164657 -
Flags: superreview+
Comment 12•21 years ago
|
||
landed
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment 13•21 years ago
|
||
landed on both trunk and 0.8.2 branch
You need to log in
before you can comment on or make changes to this bug.
Description
•