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

Firefox 127 fully supports the async clipboard API #7107

Closed
foolip opened this issue Jul 10, 2024 · 4 comments
Closed

Firefox 127 fully supports the async clipboard API #7107

foolip opened this issue Jul 10, 2024 · 4 comments

Comments

@foolip
Copy link
Contributor

foolip commented Jul 10, 2024

This is about https://caniuse.com/async-clipboard

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/127 says "The async Clipboard API is now fully supported."

I would send a PR, but am not sure about the current note for Firefox and how to update it.

@Fyrd
Copy link
Owner

Fyrd commented Aug 1, 2024

The specification also mentions supporting the "clipboard-write" permission as part of the API which I don't think Firefox supports yet. So based on that I don't think it's really fully supported?

@foolip
Copy link
Contributor Author

foolip commented Aug 1, 2024

The permissions situation for clipboard access is complicated, and I don't know the details. It looks like the security teams of different browsers disagree about what the model should be, but that it's possible to use the API in all browsers without really know about these details, by just ensuring that navigator.clipboard.writeText() and similar are called from click event handlers.

Looping in @EdgarChen who implemented this in Firefox and @saschanaz who filed w3c/clipboard-apis#164.

@saschanaz
Copy link
Contributor

Both clipboard-read and clipboard-write permissions are Blink only as AFAIK standards positions are negative from Mozilla and Apple.

@Fyrd
Copy link
Owner

Fyrd commented Aug 3, 2024

Thanks for added context! Have switched support to full and added some notes on the security considerations.

@Fyrd Fyrd closed this as completed Aug 3, 2024
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

3 participants