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

Issue 2796853002: Update text field 'change' event logic to match to Firefox. (Closed)

Created:
3 years, 8 months ago by tkent
Modified:
3 years, 8 months ago
Reviewers:
keishi
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, kochi, yosin_UTC9
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update text field 'change' event logic to match to Firefox. We tried to do so by r430531, but it was incomplete. We investigated Firefox behavior in many more cases, and our understanding is that: A) Initialize last-value with null. B) On every user edit, set the value before the edit to last-value if it is null. C) On every user edit, set last-value to null if it and the new value are same. D) Dispatch CHANGE event if last-value is not null and it and the current value are not same. TextControlElement::m_valueBeforeFirstUserEdit represents last-value. TextControlElement::setValueBeforeFirstUserEditIfNotSet() represents B, and TestControlElement::checkIfValueWasReverted() represents C. This CL adds them to every code path updating value by user edit. BUG=706370 Review-Url: https://codereview.chromium.org/2796853002 Cr-Commit-Position: refs/heads/master@{#462349} Committed: https://chromium.googlesource.com/chromium/src/+/90b048661a3949cd38ef690052d6930c230b4100

Patch Set 1 : . #

Patch Set 2 : . #

Messages

Total messages: 31 (27 generated)
tkent
keishi@, would you review this please? kochi@, yosin@, FYI. My CLs in last few days ...
3 years, 8 months ago (2017-04-06 03:37:31 UTC) #24
keishi
LGTM
3 years, 8 months ago (2017-04-06 03:59:38 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2796853002/80001
3 years, 8 months ago (2017-04-06 04:09:29 UTC) #28
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 04:14:39 UTC) #31
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/90b048661a3949cd38ef690052d6...

Powered by Google App Engine
This is Rietveld 408576698