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
{{ message }}
Repository navigation
"The link has been copied to your clipboard" is shown although the browser denied clipboard access #3760
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
"The link has been copied to your clipboard" is shown although the browser denied clipboard access. Cause: useCopyLink.ts shows the success message without checking whether navigator.clipboard.write succeeded.
Reproduction Steps
Deny clipboard write permission in the browser.
Create a public link.
Expected Outcome
The link is created and a message says it couldn't be copied.
Actual Outcome
The "copied" toast appears, but the clipboard is empty (found during the PR browser tests).
Activity