Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Issue 125973004: Update of change event for range input type (Closed)

Created:
6 years, 11 months ago by Habib Virji
Modified:
6 years, 10 months ago
CC:
blink-reviews, dglazkov+blink, adamk+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

SliderThumb is responsible for sending onchange for range input type. It is updated to send change event in its defaultEventHandler only for mouse up event. Previously onchange was triggered for any position change R=tkent BUG=155747 TEST=Range toggle test updated to generate onchange only on mouseUp. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165061

Patch Set 1 #

Total comments: 1

Patch Set 2 : Update of change event for range input type #

Total comments: 6

Patch Set 3 : Update of change event for range input type #

Total comments: 2

Patch Set 4 : Updated as per review comment #

Patch Set 5 : OnChange to also trigger OnInput event #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -2 lines) Patch
M LayoutTests/fast/forms/range/range-type-change-crash-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/forms/range/slider-mouse-events-expected.txt View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/forms/range/slider-onchange-event-expected.txt View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M Source/core/html/shadow/SliderThumbElement.cpp View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
Habib Virji
Changes to limit change event being sent frequently for number, range and datetime input field. ...
6 years, 11 months ago (2014-01-07 15:36:09 UTC) #1
tkent
Removed kenjibaheux from reviewers. He is not an engineer.
6 years, 11 months ago (2014-01-08 01:34:44 UTC) #2
tkent
This CL is trying to fix multiple problems at once. Please split this into multiple ...
6 years, 11 months ago (2014-01-08 01:37:19 UTC) #3
Habib Virji
On 2014/01/08 01:37:19, tkent wrote: > This CL is trying to fix multiple problems at ...
6 years, 11 months ago (2014-01-08 12:22:41 UTC) #4
tkent
https://codereview.chromium.org/125973004/diff/70001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html File LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html (left): https://codereview.chromium.org/125973004/diff/70001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html#oldcode55 LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html:55: shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter + 1'); We should check if 'change' ...
6 years, 11 months ago (2014-01-14 01:00:51 UTC) #5
tkent
6 years, 11 months ago (2014-01-14 01:01:07 UTC) #6
Habib Virji
Updated code as per review comments. https://codereview.chromium.org/125973004/diff/70001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html File LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html (left): https://codereview.chromium.org/125973004/diff/70001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html#oldcode55 LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html:55: shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter + ...
6 years, 11 months ago (2014-01-14 10:23:42 UTC) #7
tkent
https://codereview.chromium.org/125973004/diff/130001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html File LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html (right): https://codereview.chromium.org/125973004/diff/130001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html#newcode55 LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html:55: shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter'); This line should be shouldBe(...), not shouldBeGreaterThanOrEqual(...).
6 years, 11 months ago (2014-01-14 10:29:22 UTC) #8
Habib Virji
Updated as per review comment https://codereview.chromium.org/125973004/diff/130001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html File LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html (right): https://codereview.chromium.org/125973004/diff/130001/LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html#newcode55 LayoutTests/fast/forms/range/range-drag-when-toggled-disabled.html:55: shouldBeGreaterThanOrEqual('changeEventCounter', 'lastChangeEventCounter'); On 2014/01/14 ...
6 years, 11 months ago (2014-01-14 10:56:18 UTC) #9
tkent
lgtm
6 years, 11 months ago (2014-01-14 10:57:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/habib.virji@samsung.com/125973004/180001
6 years, 11 months ago (2014-01-14 10:57:24 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 11:56:37 UTC) #12
Message was sent while issue was closed.
Change committed as 165061

Powered by Google App Engine
This is Rietveld 408576698