Created attachment 47791 [details] Search field input events All other changes to the text of a type="search" input field trigger an input event (inserting or deleting characters, pasting into the field, spell-checker corrections, etc), but clicking on the cancel button within the field does not. The attached file "searchfield.html" demonstrates this: it contains a search field and logs all input events fired from that search field. Reproduced in Google Chrome 4.0.249.78 and Safari 4.0.4 (531.21.10).
Confirmed with r54103.
Also, potentially related, if you mousedown on the cancel button, and mouseup on the cancel button the mousedown event will fire, but the mouseup event will not fire.
See also: bug 37789.
Created attachment 61776 [details] Patch
Comment on attachment 61776 [details] Patch > +++ b/LayoutTests/fast/forms/script-tests/search-cancel-button-events.js > @@ -0,0 +1,37 @@ > +description('Test for the spin control behavior in a type=numnber input.'); The description needs update.
Created attachment 61818 [details] Patch
Comment on attachment 61818 [details] Patch We should clearly be firing the input event here. Whether we should fire an explicit cancel event is another question. It's not needed in my opinion.
Comment on attachment 61818 [details] Patch Clearing flags on attachment: 61818 Committed r63929: <http://trac.webkit.org/changeset/63929>
All reviewed patches have been landed. Closing bug.