MicrosoftEdge / MicrosoftEdge/WebView2Feedback
CreateCoreWebView2Controller fails to create controller in multiple windows
@champnic is already working on this.
Since Mar 23, 2022.
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I did a tiny modification to the HelloWebView.cpp from the WebView2 sample code in a C++/Win32 application.
It's fine if i only create one window instance. But when creating a 2nd instance in another toplevel window the callback will not receive a controller but always ERROR_INVALID_STATE. It only works when i close the 1st instance toplevel window before opening the second.
Creating a single toplevel window with both instances side by side works fine with the same code.
Giving the toplevels each it's own window thread does not help anything.
The sample code is using:
Microsoft.Web.WebView2.1.0.902.49
Microsoft.Windows.ImplementationLibrary.1.0.191107.2
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.