Skip to content

Conversation

@ShreyMarwaha
Copy link

@ShreyMarwaha ShreyMarwaha commented Dec 17, 2025

  • I agree to license my contribution under GPL-3.0 and agree to allow distribution on app stores as outlined in LICENSE-APPSTORE

To test this pull request, follow the instructions in the wiki.


This fixes: #2362

Added 'clipboardWrite' to extension permissions in manifest.json and set 'allow' attribute to 'clipboard-write' on the info menu iframe to enable clipboard operations.

Testing Results

Before:
image

After:
Copy button working as expected. No exception in console.
image

Added 'clipboardWrite' to extension permissions in manifest.json and set 'allow' attribute to 'clipboard-write' on the info menu iframe in content.ts to enable clipboard operations.
@ShreyMarwaha ShreyMarwaha changed the title Add clipboard write permission and iframe attribute Add missing clipboard write permission Dec 17, 2025
@ShreyMarwaha ShreyMarwaha marked this pull request as ready for review December 17, 2025 16:23
@ajayyy
Copy link
Owner

ajayyy commented Dec 17, 2025

I don't think both are required. Just the iframe permission should work right?

The clipboardWrite permission was removed from the manifest.json file, likely to reduce unnecessary permissions and improve security.
@ShreyMarwaha
Copy link
Author

@ajayyy Yes, you are correct. Since we are writing to the clipboard on user interaction, we do not need the permission in the manifest.json. I have removed it.

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

Successfully merging this pull request may close these issues.

Copy Public UserID button on YouTube pages doesn't work

2 participants