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

Issue 1178683007: Introducing ClipboardEvent Constructor

Created:
5 years, 6 months ago by tanay.c
Modified:
5 years, 4 months ago
Reviewers:
philipj_slow, dcheng
CC:
Habib Virji, tkent, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Introducing ClipboardEvent Constructor spec: http://www.w3.org/TR/2012/WD-clipboard-apis-20120223/#idl-def-ClipboardEventInit This cl introduces - ClipboardEventInit dictionary - Constructor for ClipboardEvent BUG=496394

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 1

Patch Set 4 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+193 lines, -1 line) Patch
A LayoutTests/fast/events/clipboard-syntheticEvents.html View 1 2 3 1 chunk +45 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/clipboard-syntheticEvents-expected.txt View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/constructors/clipboard-event-constructor.html View 1 3 1 chunk +59 lines, -0 lines 0 comments Download
A LayoutTests/fast/events/constructors/clipboard-event-constructor-expected.txt View 1 3 1 chunk +40 lines, -0 lines 0 comments Download
M Source/core/core.gypi View 2 chunks +3 lines, -0 lines 0 comments Download
M Source/core/events/ClipboardEvent.h View 3 chunks +7 lines, -0 lines 0 comments Download
M Source/core/events/ClipboardEvent.cpp View 2 chunks +14 lines, -0 lines 1 comment Download
M Source/core/events/ClipboardEvent.idl View 1 chunk +3 lines, -1 line 0 comments Download
A Source/core/events/ClipboardEventInit.idl View 1 chunk +10 lines, -0 lines 1 comment Download

Messages

Total messages: 18 (4 generated)
tanay.c
PTAL
5 years, 6 months ago (2015-06-12 06:53:47 UTC) #2
dcheng
Can we have a test that a synthetic clipboard event doesn't trigger the default action? ...
5 years, 6 months ago (2015-06-12 22:21:16 UTC) #3
tanay.c
On 2015/06/12 22:21:16, dcheng wrote: > Can we have a test that a synthetic clipboard ...
5 years, 6 months ago (2015-06-15 10:23:40 UTC) #4
dcheng
https://codereview.chromium.org/1178683007/diff/40001/LayoutTests/fast/events/constructors/clipboard-event-constructor.html File LayoutTests/fast/events/constructors/clipboard-event-constructor.html (right): https://codereview.chromium.org/1178683007/diff/40001/LayoutTests/fast/events/constructors/clipboard-event-constructor.html#newcode63 LayoutTests/fast/events/constructors/clipboard-event-constructor.html:63: shouldBeEqualToString("divTag.textContent", "DefaultText"); Without a paste handler, this won't change ...
5 years, 6 months ago (2015-06-17 03:00:14 UTC) #5
tanay.c
On 2015/06/17 03:00:14, dcheng wrote: > https://codereview.chromium.org/1178683007/diff/40001/LayoutTests/fast/events/constructors/clipboard-event-constructor.html > File LayoutTests/fast/events/constructors/clipboard-event-constructor.html > (right): > > https://codereview.chromium.org/1178683007/diff/40001/LayoutTests/fast/events/constructors/clipboard-event-constructor.html#newcode63 ...
5 years, 6 months ago (2015-06-17 11:05:12 UTC) #6
tanay.c
Please have a look
5 years, 6 months ago (2015-06-25 05:28:53 UTC) #8
philipj_slow
The spec you've referenced is very old please make sure everything's in sync with https://w3c.github.io/clipboard-apis/#clipboard-event-interfaces ...
5 years, 5 months ago (2015-06-26 22:16:53 UTC) #9
philipj_slow
The spec you've referenced is very old please make sure everything's in sync with https://w3c.github.io/clipboard-apis/#clipboard-event-interfaces ...
5 years, 5 months ago (2015-06-26 22:16:53 UTC) #10
philipj_slow
The spec you've referenced is very old please make sure everything's in sync with https://w3c.github.io/clipboard-apis/#clipboard-event-interfaces ...
5 years, 5 months ago (2015-06-26 22:16:53 UTC) #11
philipj_slow
Well that was a record number of duplicate comments...
5 years, 5 months ago (2015-06-26 22:19:07 UTC) #12
philipj_slow
Add rbyers@ to the mix since he's into events and stuff. The spec is strange ...
5 years, 5 months ago (2015-06-26 22:37:44 UTC) #14
philipj_slow
I've filed a spec bug: https://github.com/w3c/clipboard-apis/issues/10 Perhaps we should wait for some feedback on that. ...
5 years, 5 months ago (2015-06-30 10:29:52 UTC) #15
Rick Byers
On 2015/06/30 10:29:52, philipj wrote: > I've filed a spec bug: > https://github.com/w3c/clipboard-apis/issues/10 > > ...
5 years, 5 months ago (2015-07-02 13:50:28 UTC) #16
philipj_slow
5 years, 4 months ago (2015-07-28 11:21:41 UTC) #18
https://github.com/w3c/clipboard-apis/issues/10 was resolved by making the
constructor's second argument simply an EventInitDict so that it's not possible
to supply a DataTransfer object.

I've asked for confirmation that Gecko's implementor(s) are OK with this change,
but it should be pretty easy to adapt this CL to match the new spec I think.

Powered by Google App Engine
This is Rietveld 408576698