Assigned
Status Update
Comments
kr...@chromium.org <kr...@chromium.org> #2
[Empty comment from Monorail migration]
tk...@chromium.org <tk...@chromium.org> #3
[Empty comment from Monorail migration]
[Monorail components: -Blink Blink>DataTransfer]
[Monorail components: -Blink Blink>DataTransfer]
va...@techmahindra.com <va...@techmahindra.com> #4
Able to reproduce the issue on reported chrome version 63.0.3239.132 and on the latest canary 65.0.3315.0 using windows 10. For further investigation of the issue we have checked the same on M50(50.0.2661.0) but we are seeing a different console error output, which is neither "an instance of the DataTransfer interface" . Attaching the screen shots of both behaviours.
@Reporter: Could you please have a look at the provided screen shots and let us know the good behavior. It would be highly helpful if provided with a screenshot of expected behavior, which helps us to triage the issue further in a better way.
Thanks!
@Reporter: Could you please have a look at the provided screen shots and let us know the good behavior. It would be highly helpful if provided with a screenshot of expected behavior, which helps us to triage the issue further in a better way.
Thanks!
sa...@gmail.com <sa...@gmail.com> #5
Reagrding the error screenshot regarding version 50.0.2661.0: Creation of ClipboardEvent using the constructor (i.e. new ClipboardEvent('paste')) might not have been supported in version 50.0.2661.0. Therefore, it might not be termed as a bug in that version.
But in version 65.0.3315.0, it is supported. Therefore, a DataTransfer instance should have been available through clipboardData attribute. It is presently available in Firefox, version 57.0.4. Therefore, accepting their implementation as the expected behavior, attaching the screenshot
But in version 65.0.3315.0, it is supported. Therefore, a DataTransfer instance should have been available through clipboardData attribute. It is presently available in Firefox, version 57.0.4. Therefore, accepting their implementation as the expected behavior, attaching the screenshot
sh...@chromium.org <sh...@chromium.org> #6
Thank you for providing more feedback. Adding requester "vamshi.kommuri@techmahindra.com" to the cc list and removing "Needs-Feedback" label.
For more details visithttps://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
For more details visit
SC...@techmahindra.com <SC...@techmahindra.com> #7
Able to reproduce the issue on reported chrome version 63.0.3239.132 and on the latest canary 65.0.3315.0 using windows 10, Ubuntu 14.04 and Mac 10.13.1.
Till M58 "Illegal Constructor" error is seen in while pasting in devtools. But from M-59 we are seeing "null". Hence considering this issue as Non-Regression and marking as Untriaged.
Till M58 "Illegal Constructor" error is seen in while pasting in devtools. But from M-59 we are seeing "null". Hence considering this issue as Non-Regression and marking as Untriaged.
js...@chromium.org <js...@chromium.org> #8
"The clipboardData attribute of the ClipboardEvent object should be an instance of the DataTransfer interface, as mentioned in w3c documentation"
The IDL type is:
readonly attribute DataTransfer? clipboardData;
Where the '?' sigil indicates 'nullable', so null is a perfectly valid value. The prose says "The clipboardData attribute is an instance of the DataTransfer interface..." which contradicts the IDL.
The spec doesn't actually say how the clipboardData on the event gets populated when synthetic clipboard events are constructed. The code example in the spec does assume that clipboardData is populated, though.
I'm guessing the spec needs "If eventInitDict is not given, or eventInitDict's clipboardData dictionary member is null, then initialize clipboardData to a newly created DataTransfer object."
In that case, how can clipboardData be null? I'll file a spec bug.
The IDL type is:
readonly attribute DataTransfer? clipboardData;
Where the '?' sigil indicates 'nullable', so null is a perfectly valid value. The prose says "The clipboardData attribute is an instance of the DataTransfer interface..." which contradicts the IDL.
The spec doesn't actually say how the clipboardData on the event gets populated when synthetic clipboard events are constructed. The code example in the spec does assume that clipboardData is populated, though.
I'm guessing the spec needs "If eventInitDict is not given, or eventInitDict's clipboardData dictionary member is null, then initialize clipboardData to a newly created DataTransfer object."
In that case, how can clipboardData be null? I'll file a spec bug.
js...@chromium.org <js...@chromium.org> #9
Filed https://github.com/w3c/clipboard-apis/issues/64
We can align with Firefox easily enough, but let's confirm the desired behavior.
We can align with Firefox easily enough, but let's confirm the desired behavior.
br...@gmail.com <br...@gmail.com> #10
[Comment Deleted]
br...@gmail.com <br...@gmail.com> #11
Just to document for anyone else who comes across this issue while trying to use TypeScript with Chromium:
It's currently impossible to create a ClipboardEvent and then add data to it when using TypeScript + Chromium due to a combination of this issue and the fact that TypeScript currently does not follow the W3C spec for the ClipboardEventInit interface. I have filed an issue and PR with the TypeScript project to update the interface:https://github.com/Microsoft/TypeScript/issues/28998
It's currently impossible to create a ClipboardEvent and then add data to it when using TypeScript + Chromium due to a combination of this issue and the fact that TypeScript currently does not follow the W3C spec for the ClipboardEventInit interface. I have filed an issue and PR with the TypeScript project to update the interface:
is...@google.com <is...@google.com> #12
This issue was migrated from crbug.com/chromium/800742?no_tracker_redirect=1
[Monorail components added to Component Tags custom field.]
[Monorail components added to Component Tags custom field.]
Description
Steps to reproduce the problem:
1. //Run the javascript code below
2. var pasteEvent = new ClipboardEvent('paste');
3. console.log(pasteEvent.clipboardData);
What is the expected behavior?
The clipboardData attribute of the ClipboardEvent object should be an instance of the DataTransfer interface, as mentioned in w3c documentation -->
What went wrong?
clipboardData is null, when the event is created using ClipboardEvent constructor (i.e. new ClipboardEvent('paste'))
Did this work before? N/A
Chrome version: 63.0.3239.132 Channel: stable
OS Version: 10.0
Flash Version: