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

Issue 16184002: REGRESSION: Select listbox dispatches a change event on scroll. (Closed)

Created:
7 years, 6 months ago by tkent
Modified:
7 years, 6 months ago
Reviewers:
keishi
CC:
blink-reviews, eae+blinkwatch, adamk+blink_chromium.org
Visibility:
Public.

Description

REGRESSION: Select listbox dispatches a change event on scroll. wkrev.com/143560 fixed mouse events on scrollbars, and broke an HTMLSelectElement assumption that mouseup event always happens on an <option> element. So, listBoxOnChange() was called unexpectedly. This patch avoids this problem by checking m_lastOnChangeSelection.isEmpty(), which means we didn't start click or drag in this <select> element. BUG=244406 TEST=automated R=keishi@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=151430

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -3 lines) Patch
A LayoutTests/fast/forms/select/listbox-click-on-scrollbar.html View 1 chunk +41 lines, -0 lines 0 comments Download
A + LayoutTests/fast/forms/select/listbox-click-on-scrollbar-expected.txt View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLSelectElement.cpp View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
tkent
7 years, 6 months ago (2013-05-29 05:23:31 UTC) #1
keishi
On 2013/05/29 05:23:31, tkent wrote: lgtm
7 years, 6 months ago (2013-05-29 10:45:58 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tkent@chromium.org/16184002/1
7 years, 6 months ago (2013-05-29 21:17:14 UTC) #3
commit-bot: I haz the power
Retried try job too often on win_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_layout_rel&number=7536
7 years, 6 months ago (2013-05-30 00:01:06 UTC) #4
tkent
7 years, 6 months ago (2013-05-30 00:44:44 UTC) #5
Message was sent while issue was closed.
Committed patchset #1 manually as r151430 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698