Skip to content

"The link has been copied to your clipboard" is shown although the browser denied clipboard access #3760

Closed

Description

@AlexAndBear

Initial Checklist

  • 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

  1. Deny clipboard write permission in the browser.
  2. 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).

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions