Clipboard access Error in the Chrome extension

Skip to first unread message

CApps Developer Teams

unread,
Oct 4, 2022, 7:20:00 AM10/4/22
to Chromium Extensions
Hello

I use Google Translate, so the grammar may be wrong.

==========================
I would like to ask a question about clipboard access in the Chrome extension.

I used to use Chrome extensions to input from the clipboard to destinations 
such as Gmail and Google Calendar (navigator.clipboard.read(),navigator.clipboard.write()), 
but as of September 19th I am now getting the following error: 

  "DOMException: Must be handling a user gesture to suse custom clipboard" 

Was there a release on Chrome that prohibited copying to the clipboard? 
Could you let me know if there is any official release information there? 

 Also, could you please let me know if there are any workarounds?
==========================

Stefan Van Damme

unread,
Oct 6, 2022, 2:14:44 PM10/6/22
to Chromium Extensions, CApps Developer Teams
Hi there,

According to this Crbug report, that should be fixed in Chrome version 107 stable, currently in beta.

Thanks,
Stefan vd

Simeon Vincent

unread,
Oct 6, 2022, 4:34:12 PM10/6/22
to Stefan Van Damme, Chromium Extensions, CApps Developer Teams
It looks like a precious commit removed the user gesture requirement, but the most recent commit on the issue reintroduced it.

Simeon - @dotproto
Chrome Extensions DevRel

--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/46af2958-1682-4882-b296-f3b8fd6379b8n%40chromium.org.
Simeon Vincent
Developer Relations Engineer

CApps Developer Teams

unread,
Oct 11, 2022, 5:49:42 AM10/11/22
to Chromium Extensions, Simeon Vincent, Chromium Extensions, CApps Developer Teams, stefa...@gmail.com
Hello

Thank you for your reply.
Please let me ask you an additional question.

* I use Google Translate, so the grammar may be wrong.
==========================
With this release, user gestures are required again to read and write the clipboard,
Is it correct to assume that this will not be fixed in the future?
https://bugs.chromium.org/p/chromium/issues/detail?id=1334203#c20

If I use javascript confirm or prompt on gmail or google calendar,
Can this event be avoided?
==========================

2022年10月7日金曜日 5:34:12 UTC+9 Simeon Vincent:
Reply all
Reply to author
Forward
0 new messages