Closed hez2010 closed 6 days ago
You can test this PR using the following package version. 11.3.999-cibuild0053368-alpha
. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]
You can test this PR using the following package version. 11.3.999-cibuild0053370-alpha
. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]
What does the pull request do?
Return the
boolean
result directly instead an windowJSObject
inWindowOpen
, otherwise some properties of theJSObject
may be accessed while the object being collected by the GC, and failed due to a security error, which will terminate the whole process:This is also more performant as we no longer need to marshal the
JSObject
.What is the current behavior?
The whole process crash after opening a uri and the returned JSObject being collected by the GC.
What is the updated/expected behavior with this PR?
No longer crash.
Checklist
Breaking changes
Obsoletions / Deprecations
Fixed issues