-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Problem/Bug]: Program crashes when calling host object #5024
Comments
Facing similar issue with the same runtime 131.0.2903.112. |
@thqby I think we have not considered host object to be a function. How do you write this in win32 or .net to get the repro |
This is an IDispatch in win32.
The array is passed to the host in the form of SafeArray, and the host can't return the original SafeArray to webview2? Must create a new one? |
What happened?
The program crashed when an array was passed into the parameter to call the host object and return the parameter.
Importance
Blocking. My app's basic functions are not working due to this issue.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
131.0.2903.112
SDK Version
1.0.2903.40
Framework
Win32
Operating System
Windows 11
OS Version
No response
Repro steps
Create CoreWebView2 on the host side, add the host object
fn
throughAddHostObjectToScript
, and the object will return the passed-in parameters as they are, then OpenDevToolsWindow, run the code on the console.This is a simple ahk implementation.
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: