Replies: 2 comments
-
Hi, NavigationStarting event blocks the navigation, so it should be guaranteed that synchronous code in NavigationStarting handler will run before NavigationCompleted event. If you are seeing something else, feel free to share some sample code so we can look in more detail. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I encountered an extreme use case. At the same time, there are three calls to create different webview2 instances. I have some logic written in the NavigationStarting event handler, and I wish them to be executed completely before navigation completes. However, when I checked my log, there is an instance which loads a pdf, and my codes written in NavigationStarting event handler were executed after NavigationCompleted event is fired. (The other two instances seem fine.)
Is there a way to make sure the codes inside the event handler are executed completed before the navigation completes?
Beta Was this translation helpful? Give feedback.
All reactions