You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1- Create 2 webview2 and attach them to the same shared web context.
2-Navigate to the same url with both of them at about the same time.
You will see that the 2nd webview navigation will not begin until the 1st one completes its navigation (ie the server has responded).
We even made a test php call that wait for 10 seconds before returning the time started and ended.
We get this when we start navigating (or even Reloading) one after the other (very quickly).
Webview A : Start 16:14:02 - End 16:14:12
Webview B : Start 16:14:12 - End 16:14:22
We can clearly see that the second webview2 does not make the call until the first one complete. I saw that with Fiddler (tool) while the event navigationStarting is triggerering one after the other immediately.
It looks like both webview are using the same connection object or they are using a blocking mutex on something.
If they don't share the same web context, it all works in parallel.
If the url is different, they run in parallel.
On iOS/macCatalyst, WKWebview always navigate in parallel.
To share or isolate the web context, we use :
Environment.SetEnvironmentVariable("WEBVIEW2_USER_DATA_FOLDER", userDataFolderPath);
await webView.EnsureCoreWebView2Async();
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
119.0.2151.97
SDK Version
1.4.231115000
Framework
WinUI3/WinAppSDK
Operating System
Windows 10, Windows 11, Windows Server
OS Version
No response
Repro steps
See my post above
Repros in Edge Browser
No
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
1- Create 2 webview2 and attach them to the same shared web context.
2-Navigate to the same url with both of them at about the same time.
You will see that the 2nd webview navigation will not begin until the 1st one completes its navigation (ie the server has responded).
We even made a test php call that wait for 10 seconds before returning the time started and ended.
We get this when we start navigating (or even Reloading) one after the other (very quickly).
Webview A : Start 16:14:02 - End 16:14:12
Webview B : Start 16:14:12 - End 16:14:22
We can clearly see that the second webview2 does not make the call until the first one complete. I saw that with Fiddler (tool) while the event navigationStarting is triggerering one after the other immediately.
It looks like both webview are using the same connection object or they are using a blocking mutex on something.
If they don't share the same web context, it all works in parallel.
If the url is different, they run in parallel.
On iOS/macCatalyst, WKWebview always navigate in parallel.
To share or isolate the web context, we use :
Environment.SetEnvironmentVariable("WEBVIEW2_USER_DATA_FOLDER", userDataFolderPath);
await webView.EnsureCoreWebView2Async();
Importance
Moderate. My app's user experience is affected, but still usable.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
119.0.2151.97
SDK Version
1.4.231115000
Framework
WinUI3/WinAppSDK
Operating System
Windows 10, Windows 11, Windows Server
OS Version
No response
Repro steps
See my post above
Repros in Edge Browser
No
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: