Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add existence check to prevent errors accessing the clipboard in insecure contexts #3637

Closed
sentry-io bot opened this issue Sep 12, 2022 · 1 comment
Closed
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Sep 12, 2022

If accessed outside of a secure context, the navigator.clipboard property may be undefined, we should add a guard to handle this case: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts

Sentry Issue: STUDIO-FCB

TypeError: navigator.clipboard is undefined
  at copyToken (/static/studio/channel_list-a4b1d721c0ab188c1538.js:2:1355598)
  at click:append (/static/studio/channel_list-a4b1d721c0ab188c1538.js:2:1354962)
  at invokeWithErrorHandling (/static/studio/channel_list-a4b1d721c0ab188c1538.js:2:737343)
  at invoker (/static/studio/channel_list-a4b1d721c0ab188c1538.js:2:739953)
  at invokeWithErrorHandling (/static/studio/channel_list-a4b1d721c0ab188c1538.js:2:737343)
...
(5 additional frame(s) were not displayed)
@marcellamaki
Copy link
Member

Fixed with #3698

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants