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

Web Workers API doesn't work #2296

Open
vchirikov opened this issue Mar 22, 2022 · 5 comments
Open

Web Workers API doesn't work #2296

vchirikov opened this issue Mar 22, 2022 · 5 comments
Assignees
Labels
bug Something isn't working priority-low We have considered this issue and decided that we will not be able to address it in the near future. tracked We are tracking this work internally.

Comments

@vchirikov
Copy link

vchirikov commented Mar 22, 2022

Description

Web Workers API instead of sources of a file gets source of the index.html.
I mean fetch() returns right file, but new Worker() doesn't. Check the screenshots and gif. Is it a webview2 bug or a buf inside of maui wrapper of the webview2?

bug

Version
SDK:
Runtime: 99.0.1150.46
Framework: MAUI
OS: win11 / android / any (?)

Repro Steps

image

image

cc: @champnic

AB#38653528

@vchirikov vchirikov added the bug Something isn't working label Mar 22, 2022
@champnic
Copy link
Member

Hey @vchirikov - thanks for the bug report, and sorry you are hitting this! Do you see the correct behavior if you run this in the Microsoft Edge browser, or another WebView2 app?

@champnic champnic self-assigned this Mar 23, 2022
@vchirikov
Copy link
Author

Do you see the correct behavior if you run this in the Microsoft Edge browser

yes, in MS Edge everything is ok

@vchirikov
Copy link
Author

it's strange, if I use
<Content Include="..\UI.Blazor.Host\wwwroot\**\*.*" Link="wwwroot\%(RecursiveDir)%(Filename)%(Extension)" /> in csproj, the files will be copied, but the new Worker() doesn't work. If I copy files into wwwroot in the maui project directly it will work (except serviceWorker api?).

Hm..

@champnic
Copy link
Member

Thanks for confirming - I've added this bug to our backlog to take a closer look. Is this blocking you, or do you have workarounds for now?

@champnic champnic added the tracked We are tracking this work internally. label Mar 24, 2022
@vchirikov
Copy link
Author

https://github.com/dotnet/maui/blob/main/src/BlazorWebView/src/Maui/Windows/WinUIWebViewManager.cs#L56-L59

Looks like MAUI issue..
Can you move the issue to their repo?

@github-actions github-actions bot added the priority-low We have considered this issue and decided that we will not be able to address it in the near future. label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-low We have considered this issue and decided that we will not be able to address it in the near future. tracked We are tracking this work internally.
Projects
None yet
Development

No branches or pull requests

2 participants