Repository navigation
Fix Copy/Cut command not working in webview - #206529
Conversation
|
REVIEWED |
Matt Bierner (mjbvz)
left a comment
There was a problem hiding this comment.
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
activeWebviewvalue.