-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[browser][mt] Do not allow blocking on the thread with JS interop: UI, JSWebWorker #76958
Comments
Tagging subscribers to this area: @mangod9 Issue Detailsnull
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsBlocking synchronization primitives should continue to throw on the main thread as they do in single-threaded Wasm
|
If we move out of UI thread, the scenario is calling synchronous JSExport across threads. |
We need to also prevent it for JSWebWorker threads because synchronous cc @radekdoulik |
Quick list of APIs, for which we need to validate that they internally use something we already addressed so far.
I'm sure I missed some places. |
I'm thinking about the proper solution for synchronous calls from and to JavaScript. A) synchronous
B) synchronous
C) synchronous
D) synchronous
None of the |
|
If we allow blocking on the deputy thread, the interaction with sync JS interop would be also affected. Situation D2 above. |
when you call sync JSExport from UI thread, the
|
|
#99833 implemented the core part of this for The high level expectations are described in runtime/src/mono/browser/runtime/types/internal.ts Lines 577 to 609 in b7c3446
Throwing in more scenarios is counter-productive. We can improve it if we hear specific feedback about it. |
Blocking synchronization primitives should continue to throw on the
There should be opt-out MsBuild flag, for projects who need to risk it.
The text was updated successfully, but these errors were encountered: