This patch is intended to bring the input type="range" element in line with the spec, so that change events are dispatched only after the change is committed, i.e., when the user stops dragging the thumb control (cf. http://www.whatwg.org/specs/web-apps/current-work/multipage/common-input-element-attributes.html#event-input-change). The previous behavior was to dispatch a "change" event on every interaction, which is already covered by the "input" event. Note that Firefox and Chrome implement the correct behavior. This patch brings WebKit in line with these implementations.
Created attachment 234262[details]
Archive of layout-test-results from webkit-ews-02 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-02 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 234265[details]
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 234276[details]
Archive of layout-test-results from webkit-ews-14 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-14 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Created attachment 234344[details]
Archive of layout-test-results from webkit-ews-06 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-06 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 234345[details]
Archive of layout-test-results from webkit-ews-08 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: webkit-ews-08 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Created attachment 234354[details]
Archive of layout-test-results from webkit-ews-09 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: webkit-ews-09 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
Comment on attachment 234348[details]
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=234348&action=review
Congratulations. I think this could be the first sibling to commit a patch to WebKit! Just upload the final patch and I'll commit it.
> Source/WebCore/ChangeLog:10
> + A "change" event was fired every time the slider thumb element was dragged
> + by the user. The "change" event is now fired only after the thumb
> + element has stopped moving.
Could you add another paragraph that explains this behaviour matches Firefox and Chrome? I expect we might get random regression reports from this, and it would be good for our bug screeners to know right away that this is correct behaviour (e.g. you noticed that our own media controls were incorrect).
2014-07-02 05:58 PDT, pom
2014-07-02 06:10 PDT, pom
2014-07-02 07:25 PDT, Build Bot
2014-07-02 08:22 PDT, Build Bot
2014-07-02 13:55 PDT, Build Bot
2014-07-03 06:41 PDT, pom
2014-07-03 08:03 PDT, Build Bot
2014-07-03 08:16 PDT, Build Bot
2014-07-03 09:39 PDT, pom
2014-07-03 10:45 PDT, Build Bot
2014-07-03 13:28 PDT, pom