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

Import from clipboard is broken due to browser clipboard API changes #183

Open
Tyriar opened this issue May 3, 2023 · 2 comments
Open
Labels
bug Something isn't working

Comments

@Tyriar
Copy link
Member

Tyriar commented May 3, 2023

When the command is run it now results in:

Failed to import image from clipboard DOMException: Must be handling a user gesture to use custom clipboard

This wasn't the case before, not sure if it always happened on web or not. Regardless, I should probably fix this in the extension by moving the clipboard access logic for this case to the extension host instead of webview.

@Tyriar Tyriar added the bug Something isn't working label May 3, 2023
@ctc-nick
Copy link

ctc-nick commented Jul 23, 2023

Me too. ☀️ Just an empty default color page opens on Windows.

@Tyriar
Copy link
Member Author

Tyriar commented Jul 24, 2023

I'd like a fix on the VS Code side for this but unfortunately I think it would still not work on vscode.dev. So this is on my end, I need to do the clipboard reading on the extension host side, not the webview side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants