[BUG] Electron: race condition with firstWindow
and loadURL
, will hang forever
#17765
Labels
firstWindow
and loadURL
, will hang forever
#17765
Context:
Code Snippet
test.js
main.cjs
Describe the bug
The above will forever hang at
trying to get window...
. Lowering thesetTimeout
will eventually make it work. E.g.20
ms will sometimes work and givegot window
.I'm running into this because here's what my app does:
loadURL
with the localhost URL including the randomly assigned portPlaywright does not work with this setup, because it essentially requires
loadURL
to be called roughly immediately after creating the window.The text was updated successfully, but these errors were encountered: