-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Fix Copy/Cut command not working in webview #206529
Conversation
REVIEWED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! I think you just need to update the script-src
hash in the Content-Security-Policy
of index.html
I typically get the new value by launching a webview and then checking the dev tools
770a45a
to
b7ab833
Compare
I updated this. So I infer that if a change is made to pre/index.html, updating its |
Fix #141080.
After repair:

The main cause of the problem is that when you right-click the menu, the webview is actually considered to lose focus, so the copy command never gets the
activeWebview
value.