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

Issue 311053008: CANCEL: Make "compositionstart" event cancelable (Closed)

Created:
6 years, 6 months ago by yosin_UTC9
Modified:
6 years, 6 months ago
CC:
blink-reviews, Yuki, Shu Chen
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Make "compositionstart" event cancelable This patch makes "compositionstart" event cancelable as DOM Level 3 event specification[1]. A cancellation of "compositionstart" results in a renderer->browser IPC (ViewHostMsg_ImeCancelComposition), and each platform-dependent RWHV implementation is responsible for handling it. [1] http://www.w3.org/TR/DOM-Level-3-Events/#events-compositionevents BUG=228440 TEST=Source/core/editing/InputMethodControllerTest.cpp

Patch Set 1 : 2014-06-06T09:53:36 #

Total comments: 1

Patch Set 2 : 2014-06-06T04:03:44 #

Patch Set 3 : 2014-06-09T11:29:41 #

Patch Set 4 : 2014-06-18T10:53:48 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -1 line) Patch
M Source/core/core.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/editing/InputMethodController.cpp View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
A Source/core/editing/InputMethodControllerTest.cpp View 1 2 3 1 chunk +114 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
yosin_UTC9
Could you review this patch? Thanks in advance.
6 years, 6 months ago (2014-06-06 01:29:28 UTC) #1
Yuta Kitamura
According to <https://developer.mozilla.org/en-US/docs/DOM/DOM_event_reference/compositionstart>, this event is not cancelable in Gecko. The following statement from the ...
6 years, 6 months ago (2014-06-06 02:16:30 UTC) #2
kochi
On 2014/06/06 02:16:30, Yuta Kitamura wrote: > According to > <https://developer.mozilla.org/en-US/docs/DOM/DOM_event_reference/compositionstart>, > this event is ...
6 years, 6 months ago (2014-06-06 02:25:08 UTC) #3
kochi
On 2014/06/06 02:25:08, Takayoshi Kochi wrote: > On 2014/06/06 02:16:30, Yuta Kitamura wrote: > > ...
6 years, 6 months ago (2014-06-06 05:19:41 UTC) #4
kochi
https://codereview.chromium.org/311053008/diff/20001/Source/core/editing/InputMethodController.cpp File Source/core/editing/InputMethodController.cpp (right): https://codereview.chromium.org/311053008/diff/20001/Source/core/editing/InputMethodController.cpp#newcode264 Source/core/editing/InputMethodController.cpp:264: return; You have to dispatch compositionend event for this ...
6 years, 6 months ago (2014-06-06 05:20:41 UTC) #5
yosin_UTC9
On 2014/06/06 02:16:30, Yuta Kitamura wrote: > According to > <https://developer.mozilla.org/en-US/docs/DOM/DOM_event_reference/compositionstart>, > this event is ...
6 years, 6 months ago (2014-06-09 02:29:14 UTC) #6
Yuta Kitamura
On 2014/06/09 02:29:14, yosi wrote: > Blink implementation of "compositionstart" event dispatch doesn't relate to ...
6 years, 6 months ago (2014-06-09 02:48:42 UTC) #7
yosin_UTC9
PTAL I update - change description what Blink and Chromium does at composition cancelation - ...
6 years, 6 months ago (2014-06-09 03:35:45 UTC) #8
kochi
On 2014/06/09 03:35:45, yosi wrote: > PTAL > > I update > - change description ...
6 years, 6 months ago (2014-06-09 04:02:34 UTC) #9
yosin_UTC9
On 2014/06/09 04:02:34, Takayoshi Kochi wrote: > On 2014/06/09 03:35:45, yosi wrote: > > PTAL ...
6 years, 6 months ago (2014-06-09 05:07:27 UTC) #10
yukawa
On 2014/06/09 05:07:27, yosi wrote: > On 2014/06/09 04:02:34, Takayoshi Kochi wrote: > > On ...
6 years, 6 months ago (2014-06-09 05:46:27 UTC) #11
yosin_UTC9
On 2014/06/09 05:46:27, yukawa wrote: > On 2014/06/09 05:07:27, yosi wrote: > > On 2014/06/09 ...
6 years, 6 months ago (2014-06-09 09:54:28 UTC) #12
yosin_UTC9
6 years, 6 months ago (2014-06-12 09:03:02 UTC) #13
Thanks for reviewing.

After offline discussion with IME experts, I decide to cancel this patch and
implementing cancelation of "compositionstart", because:
- IME can be fall into race condition, e.g. displaying IME UI during Blink sends
composition cancelation via IPC.
- Linux IME doesn't have concept of IME cancellation
- Mozillar explicitly states they don't implement "compositionstart" cancelation
on FireFox.

Powered by Google App Engine
This is Rietveld 408576698