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
I have a very simple project in Vb.Net 4.6.2, AddHostObjectToScript doesn't throw an error, but the object is not added to the JS side. Are there any known issues with this?
<ClassInterface(ClassInterfaceType.AutoDual)>
<ComVisible(True)>
Public Class DOMHost
Sub connectHost(Msg As String)
End Sub
End Class
Private Host as New DOMHost
Private Sub Browser_CoreWebView2InitializationCompleted(sender As Object, e As CoreWebView2InitializationCompletedEventArgs) Handles Browser.CoreWebView2InitializationCompleted
Core = Browser.CoreWebView2
Core.AddHostObjectToScript("DOMHost", Host)
Core.AddScriptToExecuteOnDocumentCreatedAsync(My.Resources.DOM_Main_min)
End Sub
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
130.0.2849.56
SDK Version
1.0.2.2849.39
Framework
Winforms
Operating System
Windows 10
OS Version
10.0.19045
Repro steps
Nothing added to chrome.webview.hostObjects
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
What happened?
I have a very simple project in Vb.Net 4.6.2, AddHostObjectToScript doesn't throw an error, but the object is not added to the JS side. Are there any known issues with this?
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
130.0.2849.56
SDK Version
1.0.2.2849.39
Framework
Winforms
Operating System
Windows 10
OS Version
10.0.19045
Repro steps
Nothing added to chrome.webview.hostObjects
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: