Skip to content

Copy link - Clipboard API policy violation #41

@swashbuck

Description

@swashbuck

The copy link feature of YouTube videos is not working. This is due to a policy violation of Clipboard API.

[Violation] Permissions policy violation: The Clipboard API has been blocked because of a permissions policy applied to the current document. See https://crbug.com/414348233 for more details.

Note that this only affects the old "Link" button UI (which triggered clipboard write differently). The newer Share UI is working fine.

The fix is to explicitly allow the clipboard permission in the iframe.

<iframe 
  src="https://example.com" 
  allow="clipboard-write">
</iframe>

Screenshots

Copy link

Image

Unable to copy link to clipboard

Image

Newer Share UI (unaffected)

Image

Metadata

Metadata

Assignees

Type

No fields configured for Bug.

Projects

Status

Recently Released

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions