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

Issue 2074423004: [InputEvent] Dispatch 'input' event for ContentEditable and typing on Input element (Closed)

Created:
4 years, 6 months ago by chongz
Modified:
4 years, 6 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, blink-reviews-dom_chromium.org, chromium-reviews, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[InputEvent] Dispatch 'input' event for ContentEditable and typing on Input element This CL sends 'input' event from both user actions and execCommand (for backward interoperability). 'beforeinput' cannot be put in the similar location (e.g. CompositeEditCommand::apply()) because |CompositeEditCommand| has no information about event source. See discussions about 'input' and execCommand: https://github.com/w3c/editing/issues/43#issuecomment-227246106 Implementation details: The old 'input' Event came from 3 places: 1. TypingCommand -> webkitEditableContentChanged -> 'input' 2. Non-typing CompositeEditCommand -> webkitEditableContentChanged -> 'input' 3. Forms set value and checked -> 'input' This CL changed 1) and 2) to dispatch real InputEvent, and left 3) unchanged. BUG=585875 Committed: https://crrev.com/e8defdccba078e920f52ac20728d2f918c45b2e6 Cr-Commit-Position: refs/heads/master@{#401505}

Patch Set 1 : Dispatch scoped 'input' event #

Total comments: 15

Patch Set 2 : tkent's review #

Total comments: 1

Messages

Total messages: 28 (20 generated)
chongz
Hi yosin@, this CL sends 'input' event with |inputType|, PTAL, thanks! https://codereview.chromium.org/2074423004/diff/100001/third_party/WebKit/LayoutTests/fast/events/inputevents/before-input-inputtype.html File third_party/WebKit/LayoutTests/fast/events/inputevents/before-input-inputtype.html (right): ...
4 years, 6 months ago (2016-06-22 05:16:52 UTC) #14
yosin_UTC9
lgtm +tkent@ for Form related changes. https://codereview.chromium.org/2074423004/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (right): https://codereview.chromium.org/2074423004/diff/100001/third_party/WebKit/Source/core/editing/Editor.cpp#newcode110 third_party/WebKit/Source/core/editing/Editor.cpp:110: target->dispatchScopedEvent(inputEvent); On 2016/06/22 ...
4 years, 6 months ago (2016-06-22 06:29:25 UTC) #16
tkent
This needs a test to check various editing operations produce correct |inputType| and |isComposing| values. ...
4 years, 6 months ago (2016-06-22 06:53:21 UTC) #17
chongz
tkent@ I've added tests about execCommand and isComposing, but I'm not sure what's the expected ...
4 years, 6 months ago (2016-06-23 00:32:07 UTC) #20
tkent
lgtm
4 years, 6 months ago (2016-06-23 00:42:56 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2074423004/150001
4 years, 6 months ago (2016-06-23 01:25:21 UTC) #24
commit-bot: I haz the power
Committed patchset #2 (id:150001)
4 years, 6 months ago (2016-06-23 01:34:12 UTC) #26
commit-bot: I haz the power
4 years, 6 months ago (2016-06-23 01:38:30 UTC) #28
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e8defdccba078e920f52ac20728d2f918c45b2e6
Cr-Commit-Position: refs/heads/master@{#401505}

Powered by Google App Engine
This is Rietveld 408576698