Skip to content

Add option to serve WebAssembly app with multithreading #54062

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

Merged
merged 7 commits into from
Feb 19, 2024

Conversation

SteveSandersonMS
Copy link
Member

@SteveSandersonMS SteveSandersonMS commented Feb 15, 2024

For detailed information, see the API review issue at #54071

PR review notes

The product logic change is very small - it's just the changes in these two files:

Everything else is tests.

When merged, we can also mark #53723 as test-fixed.

@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Feb 15, 2024
@SteveSandersonMS SteveSandersonMS added the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@dotnet-policy-service dotnet-policy-service bot removed the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@SteveSandersonMS SteveSandersonMS marked this pull request as ready for review February 16, 2024 11:57
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner February 16, 2024 11:57
@SteveSandersonMS SteveSandersonMS added the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@dotnet-policy-service dotnet-policy-service bot removed the api-ready-for-review API is ready for formal API review - https://github.com/dotnet/apireviews label Feb 16, 2024
@dotnet dotnet deleted a comment from dotnet-policy-service bot Feb 16, 2024
endpointBuilder.RequestDelegate = httpContext =>
{
httpContext.Response.Headers["Cross-Origin-Embedder-Policy"] = "require-corp";
httpContext.Response.Headers["Cross-Origin-Opener-Policy"] = "same-origin";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be same-origin-allow-popups? If we are not having a way to configure this, we should at least be as lax as possible while enabling the feature.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, unfortunately that's not enough for SharedArrayBuffer to be enabled. It has to be same-origin.


namespace Microsoft.AspNetCore.Components.E2ETest.Tests;

public class ThreadingHostedAppTest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth having a dev server test?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There already is one - see ThreadingAppTest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants