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

clipboard copied "NotAllowedError: Write permission denied." #167

Closed
jerry-wolf opened this issue Apr 22, 2024 · 2 comments
Closed

clipboard copied "NotAllowedError: Write permission denied." #167

jerry-wolf opened this issue Apr 22, 2024 · 2 comments

Comments

@jerry-wolf
Copy link

Environment: Android WebView (has native async clipboard API, but throws NotAllowedError when called).
Perhaps Promise.protoype.catch call a function with an error instead of a string here?

@lgarron
Copy link
Owner

lgarron commented Apr 24, 2024

By Jove, it seems you're right! Should be an easy fix (but maybe not so easy to test).

lgarron added a commit that referenced this issue Apr 24, 2024
This includes a regression test for #167
lgarron added a commit that referenced this issue Apr 24, 2024
Release notes:

- Fix an issue where the contents of a `NotAllowedError` could be copied when
  - `navigator.clipboard.writeText()` fails, but
  - a further fallback succeeds.

See #167 for more information.
lgarron added a commit that referenced this issue Apr 24, 2024
Release notes:

- Fix an issue where the contents of a `NotAllowedError` could be copied when
  - `navigator.clipboard.writeText(…)` fails, but
  - a further fallback succeeds.

See #167 for more information.
@lgarron
Copy link
Owner

lgarron commented Apr 24, 2024

@jerry-wolf: Thanks for reporting this! Please let me know if v4.1.0 fixes the issue!

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

No branches or pull requests

2 participants