You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a list of clipboard api issues we are currently facing on Web.
Workaround user permission
Write
Clipboard requests from extensions running in Web worker in Safari not classified by Safari as "in response to a user gesture" and will reject. We turn every click/keydown to clipboard request and any clipboard write is then classified as response to a user gesture.
Otherwise, use navigator.clipboard.writeText
Lastly document.execCommand('copy')
Read: navigator.clipboard.readText. To avoid prompt for user permission, we don't allow keybinding customizations.
Here is a list of clipboard api issues we are currently facing on Web.
click
/keydown
to clipboard request and any clipboard write is then classified as response to a user gesture.navigator.clipboard.writeText
document.execCommand('copy')
navigator.clipboard.readText
. To avoid prompt for user permission, we don't allow keybinding customizations.readText
: only available in Browser extensionswriteText
: available without permission in secure contexts and browser extensions, but only from user-initiated event callbacksread/write(data: ClipboardItem[])
: available when users have browser preference dom.events.asyncClipboard.dataTransfer set to trueThe text was updated successfully, but these errors were encountered: