-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[wasm] Enable crypto and related tests #37669
Comments
Since the entire set of System.Security.Cryptography.* tests has been disabled on WASM recently in #37723, we need to let everyone know that those areas are not quite supported on WASM at the moment. In that case System.Security.Cryptography classes could throw PlatformNotSupportedException until some solution comes (#37669)
Since the entire set of System.Security.Cryptography.* tests has been disabled on WASM recently in dotnet/runtime#37723, we need to let everyone know that those areas are not quite supported on WASM at the moment. In that case System.Security.Cryptography classes could throw PlatformNotSupportedException until some solution comes (dotnet/runtime#37669)
This document should be updated when we have the solution. |
- [ActiveIssue] dotnet#37669 for missing crypto MD5
- enable System.Net.Http.Functional.Tests on browser - System.Net.Http.Functional.Tests to run in chrome instead of V8 via WasmTestOnBrowser - ActiveIssue #34690 for WebSocket on Windows Mono - fix Quic detection in test - disable webSocket tests on Mono/Windows - disable tests with MaxConnectionsPerServer not supported on Browser - disable tests with Socket not supported on Browser - disable tests with AutomaticDecompression not supported on Browser - disable tests with UseProxy not supported on Browser - disable tests with PreAuthenticate not supported on Browser - disable tests with Credentials is not supported on Browser - disable tests with Loopback server - run outerloop on browser, rather than V8 only - [ActiveIssue] #37669 for missing crypto MD5 - conditional tests with PlatformDetection.IsBrowserDomSupportedOrNotBrowser to allow System.Net.Http.Functional.Tests pass on V8 - disabled tests with #53018 - disabled tests with #53591 - disabled tests with #53592
@steveisok, any recent thoughts on this? Are there any chances to do it for dotnet 7? |
Now that there is a build with wasm threads enabled, this should be possible. #70461 will make it easier to configure. |
@lewing can you help with assigning? |
@steveisok Would "wasm threads" a) mean that we could just use simple sync over async for the crypto API, not have to write our own message pump thing, and b) mean that there are now race conditions possible in the message pump and we have to harden it? |
I'm not sure. We're going to have to try and see if sync over async works with the crypto API. The behavior of wasm threads can be a little strange. |
Given the plan laid out in #40074 (comment) and #73858, I think it should be closed. |
The crypto tests are currently disabled since we are not shipping Wasm w/ openssl and interop w/ SubtleCrypto is not currently possible. Reasoning being, some of our .NET crypto API's are sync and all SubtleCrypto is async.
As of right now, something like Asyncify will not work for us either, but it's something we should continue to pay attention to.
The text was updated successfully, but these errors were encountered: