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

webview blocked script execution #78203

Closed
SimonSiefke opened this issue Jul 30, 2019 · 0 comments
Closed

webview blocked script execution #78203

SimonSiefke opened this issue Jul 30, 2019 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded webview Webview issues
Milestone

Comments

@SimonSiefke
Copy link
Contributor

  • VSCode Version: 1.37.0-insider
  • OS Version: Ubuntu 18.10

Steps to Reproduce:

  1. Download webview sample (https://github.com/microsoft/vscode-extension-samples/tree/master/webview-sample)
  2. npm install
  3. launch extension (extension works as expected)
  4. reload window
  5. webview panel is restored but script execution is blocked

script-execution-blocked

The error message is:
VM93 main.js:10 Blocked script execution in 'data:text/html;charset=utf-8,%3C%21DOCTYPE%20html%3E%0D%0A%3Chtml%20lang%3D%22en%22%20style%3D%22width%3A%20100%25%3B%20height%3A%20100%25%22%3E%0D%0A%3Chead%3E%0D%0A%09%3Ctitle%3EVirtual%20Document%3C%2Ftitle%3E%0D%0A%3C%2Fhead%3E%0D%0A%3Cbody%20style%3D%22margin%3A%200%3B%20overflow%3A%20hidden%3B%20width%3A%20100%25%3B%20height%3A%20100%25%22%3E%0D%0A%3C%2Fbody%3E%0D%0A%3C%2Fhtml%3E' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

Does this issue occur when all extensions are disabled?: Yes

@mjbvz mjbvz added this to the August 2019 milestone Aug 11, 2019
@mjbvz mjbvz added bug Issue identified by VS Code Team member as probable bug webview Webview issues labels Aug 12, 2019
@mjbvz mjbvz closed this as completed in 231da46 Aug 12, 2019
@alexr00 alexr00 added the verified Verification succeeded label Aug 29, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug verified Verification succeeded webview Webview issues
Projects
None yet
Development

No branches or pull requests

3 participants