How does CoreWebView2.ExecuteScriptAsync work with respect to navigation events? #4055
Unanswered
szanto90balazs
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In CoreWebView2.ExecuteScriptAsync(String) Method's documentation it stated:
Can I look at
NavigationStarting
event as a synchronization point? Is it safe to say that ifCoreWebView2.ExecuteScriptAsync
is called before theNavigationStarting
is raised, the script can only run in the current document's context (or not run at all) and will never run against the new document's context (created after navigation starting)?What does
This method is applied asynchronously.
exactly mean? Would you mind providing more details? What guaranties an app developer can expect? Any potential race conditions app developers should be aware of?I have a similar question in mind, but for
CoreWebView2.PostWebMessageAsJson(String)
as well.Beta Was this translation helpful? Give feedback.
All reactions