[Bug]: Electron will crash when I call BrowserView.destroy(). #37419
Labels
23-x-y
bug 🪲
component/BrowserView
has-repro-gist
Issue can be reproduced with code at https://gist.github.com/
platform/windows
status/confirmed
A maintainer reproduced the bug or agreed with the feature
Preflight Checklist
Electron Version
23.1.0
What operating system are you using?
Windows
Operating System Version
Windows 11 22H2 22621.1265
What arch are you using?
x64
Last Known Working Electron version
21.4.2
Expected Behavior
Electron will not exit and browserView will close.
Actual Behavior
Electron exited with code 3221225477.
Testcase Gist URL
No response
Additional Information
I publish fiddle to github failed. /(ㄒoㄒ)/~~
main.js
renderer.js
preload.js
But, if i call
webContents.close()
, thedestroyed
event not be emitted.webContents.isDestroyed()
is false.The text was updated successfully, but these errors were encountered: