-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Allow SharedArrayBuffer to be used by extensions in vscode.dev (using cross-origin isolation) #137884
Comments
Related: #116715 |
March to investigate. Enabling crossOrigin isolation can have some ripple on things that we load and those need CORP or CORS to continue to work |
We know what to do here but there is still work to configure our CDNs and to find resources that aren't CORP-ready yet |
Enabling this unfortunately has unwanted side-effects on extensions using webview. I believe we are blocked until browsers relax restrictions for embedded iframe a bit, see #145539 (comment) |
We will do more exploring during June |
add `cross-origin-isolated` to web-worker ext host iframe, related #137884
Plan for July
|
Once we have that we can explore and see what all breaks - webviews loading 3rd party resources, auth, embedding... |
We're building a internal wasm ui design/edtior as a vscode plugin which needs SharedArrayBuffer feature, expect this to ship in July! |
This is now live on insiders.dev. You have to use the Note that for now this is only for |
I tested this after building from the latest VSC source and running I've added a request for Thanks! |
To verify
|
Does this issue occur when all extensions are disabled?: No
Hi,
I am trying to make our extension (https://github.com/eclipse/che-che4z-lsp-for-hlasm) work in browser environment so it can be used with web version of vscode. It is written in C++ and we are using emscripten to compile it into WebAssembly. The C++ backend uses multiple threads, which translate into web workers and emscripten uses SharedArrayBuffer to communicate between them. However SharedArrayBuffer is not available on vscode.dev, since the site does not use cross-origin isolation - see this: https://developer.chrome.com/blog/enabling-shared-array-buffer/
Steps to Reproduce:
In the Console of developer tools, this message shows:
And of course, the extension is not enabled.
Additional Info:
I have managed to get it working by starting chrome with disabled security:
If I reproduce those steps with chrome started this way, the extensions works as expected (just try to type something and there will by some diagnostics).
BTW I have opened a similar issue (microsoft/vscode-test-web#14) in the vscode-test-web repository, but nobody noticed it there, so I created this issue with reproducible example.
The text was updated successfully, but these errors were encountered: