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