Summary: | REGRESSION(r100111): A 'change' event does not fire when a mouse drag occurs to switch elements in a listbox | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kent Tamura <tkent> | ||||||
Component: | Forms | Assignee: | Kent Tamura <tkent> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | ap, dglazkov, morrita, rakeshchaitan, webkit.review.bot | ||||||
Priority: | P1 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Kent Tamura
2012-01-12 21:16:15 PST
The root cause is that the mousedown handling in listBoxDefaultEventHandler() updates m_lastOnChangeSelection. If the listbox is scrollable, mousemove events are not dispatched. Created attachment 122874 [details]
Patch
Comment on attachment 122874 [details]
Patch
The test shows the evidence.
(In reply to comment #1) > The root cause is that the mousedown handling in listBoxDefaultEventHandler() updates m_lastOnChangeSelection. If the listbox is scrollable, mousemove events are not dispatched. Correction: mousedown -> mousemove BTW, HTMLSelectElement has multiple functions to update option selection, and they are confusing. We had better refactor/rename/document them. Comment on attachment 122874 [details] Patch Attachment 122874 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/11282082 New failing tests: fast/forms/select-multiple-elements-with-mouse-drag-with-options-less-than-size.html (In reply to comment #5) > (From update of attachment 122874 [details]) > Attachment 122874 [details] did not pass chromium-ews (chromium-xvfb): > Output: http://queues.webkit.org/results/11282082 > > New failing tests: > fast/forms/select-multiple-elements-with-mouse-drag-with-options-less-than-size.html The test didn't fail on Apple Mac and Chromium Mac with the patch. Created attachment 123050 [details]
Patch for landing
Comment on attachment 123050 [details] Patch for landing Clearing flags on attachment: 123050 Committed r105386: <http://trac.webkit.org/changeset/105386> All reviewed patches have been landed. Closing bug. |