-
Notifications
You must be signed in to change notification settings - Fork 51
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
AddHostObjectToScript - Caching chrome.webview.hostObjects.external in a variable causes Error: Element not found. (0x80070490) #525
Comments
I believe this is because you are caching the 'external' object in JS, and I think this has caused some garbage collection related issues in the past (or something similar). Can you try using the full path to call? Let me know if that fixes it for you. I've opened a bug on our end to look into this. Thanks! |
It looks like it works!
|
We also experience limited life-time for proxies. Sofar we have implemented workarounds by using full-path access. For entities in our model we cache IDs and use lookup functions. And in few situations where the COM object is only referred from JS we had to publish references to sn external collection implemented in C++. |
Hi Everyone, This was addressed in the 1.0.707-prerelease version. |
we recently saw a similar error in our project. |
Regression problems may occure, but we did not experience any lifetime issues in our application since the fix was introduced. |
Hi,
I'm using the following code to call a method from Javascript
The JavaScript method looks like this
After a couple of clicks and randomly I get the following error.
Error: Element not found. (0x80070490)
It works again when I right-click on the page and reload the content on the WebView2, without restarting the program.
Does anyone know why this happens?
AB#28271329
The text was updated successfully, but these errors were encountered: