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

Issue 21030005: Editor: Deffer event dispatch after selection change. (Closed)

Created:
7 years, 4 months ago by eustas
Modified:
7 years, 2 months ago
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, ojan
Visibility:
Public.

Description

Problem: JS 'focus' handler fired by drag-n-drop can't restore input value. Solution: enqueue event dispatching, so handlers execute when state is stable. BUG=263743 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158811

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added event order test #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : Update tests for mac platform #

Patch Set 5 : Remove redundant expectation file #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -8 lines) Patch
A LayoutTests/editing/selection/drag-drop-events.html View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download
A + LayoutTests/editing/selection/drag-drop-events-expected.txt View 1 2 1 chunk +9 lines, -3 lines 0 comments Download
A LayoutTests/editing/selection/drag-drop-restore.html View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A + LayoutTests/editing/selection/drag-drop-restore-expected.txt View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M Source/core/editing/Editor.cpp View 1 2 3 4 4 chunks +9 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
eustas
7 years, 4 months ago (2013-07-29 15:45:15 UTC) #1
eustas
7 years, 4 months ago (2013-08-23 11:08:50 UTC) #2
tkent
+yosin
7 years, 4 months ago (2013-08-25 22:03:58 UTC) #3
yosin_UTC9
Summary of this CL doesn't mean what this patch changes. Please change something like: Deffer ...
7 years, 3 months ago (2013-08-26 01:51:12 UTC) #4
yosin_UTC9
https://codereview.chromium.org/21030005/diff/1/LayoutTests/editing/selection/drag-drop-restore.html File LayoutTests/editing/selection/drag-drop-restore.html (right): https://codereview.chromium.org/21030005/diff/1/LayoutTests/editing/selection/drag-drop-restore.html#newcode25 LayoutTests/editing/selection/drag-drop-restore.html:25: dst.addEventListener("focus", restoreValue, false); Please check order of events and ...
7 years, 3 months ago (2013-08-26 01:58:54 UTC) #5
yosin_UTC9
Is it better to dispatch events as IE? When drag-and-drop from "src" input element to ...
7 years, 3 months ago (2013-08-26 05:03:45 UTC) #6
yosin_UTC9
You can see list of events for drag-and-drop by http://jsfiddle.net/6r4zV/
7 years, 3 months ago (2013-08-26 05:14:16 UTC) #7
eseidel
It would be nice to add Yohsifumi's test. This change looks reasonable to me, but ...
7 years, 3 months ago (2013-09-03 18:59:09 UTC) #8
eustas
Added order event test. PTAL
7 years, 3 months ago (2013-09-19 13:15:59 UTC) #9
eseidel
lgtm. Ideally we'd get yosin's lgtm too.
7 years, 3 months ago (2013-09-19 15:05:47 UTC) #10
yosin_UTC9
https://codereview.chromium.org/21030005/diff/13001/LayoutTests/editing/selection/drag-drop-events.html File LayoutTests/editing/selection/drag-drop-events.html (right): https://codereview.chromium.org/21030005/diff/13001/LayoutTests/editing/selection/drag-drop-events.html#newcode22 LayoutTests/editing/selection/drag-drop-events.html:22: var span = document.createElement("span"); nit: Using debug() can reduce ...
7 years, 3 months ago (2013-09-20 03:53:57 UTC) #11
eustas
https://codereview.chromium.org/21030005/diff/13001/LayoutTests/editing/selection/drag-drop-events.html File LayoutTests/editing/selection/drag-drop-events.html (right): https://codereview.chromium.org/21030005/diff/13001/LayoutTests/editing/selection/drag-drop-events.html#newcode22 LayoutTests/editing/selection/drag-drop-events.html:22: var span = document.createElement("span"); On 2013/09/20 03:53:58, Yoshifumi Inoue ...
7 years, 3 months ago (2013-09-20 05:13:15 UTC) #12
yosin_UTC9
ACK Thanks!
7 years, 3 months ago (2013-09-20 05:14:54 UTC) #13
eseidel
lgtm
7 years, 3 months ago (2013-09-20 18:20:15 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eustas@chromium.org/21030005/23001
7 years, 3 months ago (2013-09-20 18:21:58 UTC) #15
commit-bot: I haz the power
Retried try job too often on mac_blink_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_blink_rel&number=5167
7 years, 3 months ago (2013-09-20 22:01:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eustas@chromium.org/21030005/43001
7 years, 2 months ago (2013-10-03 13:53:52 UTC) #17
commit-bot: I haz the power
7 years, 2 months ago (2013-10-03 13:54:30 UTC) #18
Message was sent while issue was closed.
Change committed as 158811

Powered by Google App Engine
This is Rietveld 408576698