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

Clipboard Service API not supported in FF #84084

Closed
sbatten opened this issue Nov 6, 2019 · 3 comments
Closed

Clipboard Service API not supported in FF #84084

sbatten opened this issue Nov 6, 2019 · 3 comments
Assignees
Labels
debt Code quality issues editor-clipboard Editor clipboard issues firefox Issues running VSCode in Web on Firefox upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream web Issues related to running VSCode in the web
Milestone

Comments

@sbatten
Copy link
Member

sbatten commented Nov 6, 2019

Firefox does not support navigator.clipboard read and write API.

refs #83595

@sbatten sbatten added upstream Issue identified as 'upstream' component related (exists outside of VS Code) editor-clipboard Editor clipboard issues web Issues related to running VSCode in the web firefox Issues running VSCode in Web on Firefox labels Nov 6, 2019
@sbatten sbatten added this to the Backlog milestone Nov 6, 2019
@rebornix
Copy link
Member

rebornix commented Nov 7, 2019

Based on https://developer.mozilla.org/en-US/docs/Web/API/Clipboard_API, right now in Firefox, there are quite a few limitations with Clipboard API, quote:

  • readText: only available in Browser extensions
  • writeText: available without permission in secure contexts and browser extensions, but only from user-initiated event callbacks
  • read/write: available when users have browser preference dom.events.asyncClipboard.dataTransfer set to true

Taking above limitations into account, we may want to rely on browser behaviors only for clipboard related actions.

@rebornix rebornix added the upstream-issue-linked This is an upstream issue that has been reported upstream label Nov 7, 2019
@plisy
Copy link

plisy commented Nov 14, 2019

Would it be possible to surface an error message if the clipboard isn't available?

@hsinyi
Copy link

hsinyi commented Jun 20, 2024

clipboard.read/writeText() and read/write() are now supported in Firefox, since Fx 127.
https://www.mozilla.org/en-US/firefox/127.0/releasenotes/

@bpasero bpasero closed this as completed Jul 30, 2024
@bpasero bpasero modified the milestones: Backlog, August 2024 Jul 30, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Sep 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debt Code quality issues editor-clipboard Editor clipboard issues firefox Issues running VSCode in Web on Firefox upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream web Issues related to running VSCode in the web
Projects
None yet
Development

No branches or pull requests

5 participants