fix: crash when setWindowOpenHandler
callback throws
#34523
Merged
setWindowOpenHandler
callback throws
#34523