MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: SharedWorker stops to work after page reload until DevTools attached
@vbryh-msft is already working on this.
Since Oct 9, 2024.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Im using webView2 to display spa which uses SharedWorker for background work. It works good, but if you reload page (right click - refresh) shared worker stops to work until you attach devtools to it, after that refresh works until devtools detached.
If I have two webView2s attached to same shared worker refresh works, probably because its being kept alive by another instance. I suspect it might be something about cdp, playwrite and cypress had similar issues
https://github.com/cypress-io/cypress/pull/28254
https://github.com/microsoft/playwright/pull/18976
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
129.0.2792.79
SDK Version
1.0.2420.47
Framework
WPF
Operating System
Windows 11
OS Version
22621.4169
Repro steps
Create app with basic shared worker https://developer.mozilla.org/en-US/docs/Web/API/SharedWorker, reload the page
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.