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

Issue 2685723005: evaluating clipboard event target acording to w3c specification (Closed)

Created:
3 years, 10 months ago by mwrobel
Modified:
3 years, 10 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Editor::findEventTargetFrom() to align Clipboard API specification This patch changes |Editor::findEventTargetFrom()| to return focused element if selection start is not editable to align Clipboard API specification[1] for improving interoperability. [1] https://w3c.github.io/clipboard-apis/#to-fire-a-clipboard-event BUG=690104 TEST=webkit_unittests --gtest_filter=ClipboardEventFlowTest.* Review-Url: https://codereview.chromium.org/2685723005 Cr-Commit-Position: refs/heads/master@{#451716} Committed: https://chromium.googlesource.com/chromium/src/+/7afbab0f7619c89aa7a5896024d1628a59cc0ef1

Patch Set 1 #

Patch Set 2 : clipboard event target set to focused/active when selection not editable #

Total comments: 6

Patch Set 3 : Make Editor::findEventTargetFrom() to align Clipboard API specification #

Total comments: 9

Patch Set 4 : Make Editor::findEventTargetFrom() to align Clipboard API specification #

Total comments: 4

Patch Set 5 : Make Editor::findEventTargetFrom() to align Clipboard API specification #

Total comments: 4

Patch Set 6 : Make Editor::findEventTargetFrom() to align Clipboard API specification #

Patch Set 7 : Make Editor::findEventTargetFrom() to align Clipboard API specification #

Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -3 lines) Patch
M third_party/WebKit/LayoutTests/editing/pasteboard/onpaste-text-html-types.html View 1 2 3 4 5 6 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp View 1 2 3 4 5 1 chunk +149 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLButtonElement.h View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 62 (40 generated)
mwrobel
3 years, 10 months ago (2017-02-10 10:28:03 UTC) #3
yosin_UTC9
Could you add a test case for this? We don't need to have "issue-690104" in ...
3 years, 10 months ago (2017-02-13 04:07:46 UTC) #4
mwrobel
I wil try to provide test case once: https://bugs.chromium.org/p/chromium/issues/detail?id=691532&q=mwrobel%40opera.com&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Component%20Status%20Owner%20Summary%20OS%20Modified is on board
3 years, 10 months ago (2017-02-13 14:59:07 UTC) #5
yosin_UTC9
On 2017/02/13 at 14:59:07, mwrobel wrote: > I wil try to provide test case once: ...
3 years, 10 months ago (2017-02-14 03:46:03 UTC) #6
mwrobel
@yosin test case added
3 years, 10 months ago (2017-02-14 17:06:50 UTC) #7
yosin_UTC9
Could you explain what change you did in this patch? Also, we don't need to ...
3 years, 10 months ago (2017-02-15 01:30:49 UTC) #8
mwrobel
On 2017/02/15 01:30:49, yosin_UTC9 wrote: > Could you explain what change you did in this ...
3 years, 10 months ago (2017-02-15 09:49:53 UTC) #11
yosin_UTC9
https://codereview.chromium.org/2685723005/diff/40001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp File third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp (right): https://codereview.chromium.org/2685723005/diff/40001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp#newcode59 third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp:59: element.layoutObject()->mutableStyle()->setUserModify( Accessing layout object is layering violation. Please set ...
3 years, 10 months ago (2017-02-15 10:13:58 UTC) #12
mwrobel
https://codereview.chromium.org/2685723005/diff/20001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp File third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp (right): https://codereview.chromium.org/2685723005/diff/20001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp#newcode47 third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp:47: void setElementTextAndSelectIt(Element& element, On 2017/02/15 01:30:49, yosin_UTC9 wrote: > ...
3 years, 10 months ago (2017-02-15 10:51:58 UTC) #13
yosin_UTC9
https://codereview.chromium.org/2685723005/diff/40001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp File third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp (right): https://codereview.chromium.org/2685723005/diff/40001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp#newcode96 third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp:96: EXPECT_EQ(selectionEditable, On 2017/02/15 at 10:51:58, mwrobel wrote: > On ...
3 years, 10 months ago (2017-02-16 10:53:39 UTC) #14
mwrobel
https://codereview.chromium.org/2685723005/diff/60001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp File third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp (right): https://codereview.chromium.org/2685723005/diff/60001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp#newcode56 third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp:56: .extend(Position(&element, text.size())) On 2017/02/16 10:53:39, yosin_UTC9 wrote: > nit: ...
3 years, 10 months ago (2017-02-16 14:15:26 UTC) #17
yosin_UTC9
lgtm +tkent@ for HTMLButtonElement.h changes.
3 years, 10 months ago (2017-02-17 04:44:24 UTC) #19
tkent
lgtm https://codereview.chromium.org/2685723005/diff/80001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp File third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp (right): https://codereview.chromium.org/2685723005/diff/80001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp#newcode1 third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp:1: // Copyright 2016 The Chromium Authors. All rights ...
3 years, 10 months ago (2017-02-17 04:55:18 UTC) #20
mwrobel
https://codereview.chromium.org/2685723005/diff/80001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp File third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp (right): https://codereview.chromium.org/2685723005/diff/80001/third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp#newcode1 third_party/WebKit/Source/core/editing/ClipboardEventFlowTest.cpp:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
3 years, 10 months ago (2017-02-17 07:59:23 UTC) #21
mwrobel
this is my first patch. Could you please run tests (and generally integrate it)?
3 years, 10 months ago (2017-02-17 09:20:23 UTC) #26
sof
CQ balks at https://codereview.chromium.org/2685723005/#msg30 . mwrobel@opera.com should be covered by the *@opera.com entry in //AUTHORS ...
3 years, 10 months ago (2017-02-17 09:52:59 UTC) #39
sof
On 2017/02/17 09:52:59, sof wrote: > CQ balks at https://codereview.chromium.org/2685723005/#msg30 . > mailto:mwrobel@opera.com should be ...
3 years, 10 months ago (2017-02-17 12:45:14 UTC) #42
mwrobel
@yosin please double check additional change (I had to change single webkit test) since when ...
3 years, 10 months ago (2017-02-20 12:16:11 UTC) #45
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/2685723005/120001
3 years, 10 months ago (2017-02-21 08:31:41 UTC) #57
commit-bot: I haz the power
Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/7afbab0f7619c89aa7a5896024d1628a59cc0ef1
3 years, 10 months ago (2017-02-21 09:35:25 UTC) #60
yosin_UTC9
On 2017/02/21 at 09:35:25, commit-bot wrote: > Committed patchset #7 (id:120001) as https://chromium.googlesource.com/chromium/src/+/7afbab0f7619c89aa7a5896024d1628a59cc0ef1 lgtm Thanks ...
3 years, 10 months ago (2017-02-22 07:38:46 UTC) #61
luoe
3 years, 9 months ago (2017-03-10 18:08:21 UTC) #62
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/2745813002/ by luoe@chromium.org.

The reason for reverting is: Changing this functionality improved spec
conformance, but introduced regressions where text that used to be copied is no
longer copied:
crbug.com/695568
crbug.com/700163

A proposal to change the spec was made here:
https://github.com/w3c/clipboard-apis/issues/40.

Powered by Google App Engine
This is Rietveld 408576698