`OpenClipboard Failed` error thrown randomly when accessing clipboard

Issue #14073387 • Assigned to Steven K.

Details

Author
Krzysztof K.
Created
Oct 4, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
16.16257
Reports
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

I stumbled upon this issue when working with Clipboard API integration in CKEditor. The flow is a little complex there, but error was thrown when accessing native dataTransfer object second time in the same function (invoked by paste listener): https://github.com/ckeditor/ckeditor-dev/blob/8a96a9adfc0af653538e32f455a5be0b20b2c3db/plugins/clipboard/plugin.js#L2085-L2089.

The workaround was quite simple, just to assign native dataTransfer object to a variable and use the variable further in the code:
https://github.com/ckeditor/ckeditor-dev/blob/t/468-962/plugins/clipboard/plugin.js#L2098-L2108.

You may read more detailed issue description here: https://github.com/ckeditor/ckeditor-dev/issues/962#issuecomment-332849493


I tried to reproduce the issue in some simpler example on jsfiddle, while I was able to randomly generate the error it was not repetitive, so it seems a little random.

While testing, there were no other applications accessing clipboard which might interfere with Edge accessing it so it seems as stricte Edge issue.

Attachments

0 attachments

    Comments and activity

    You need to sign in to your Microsoft account to add a comment.

    Sign in