fix: createWindow shouldn't load URL for webContents (#43775)

* fix: createWindow shouldn't load URL for webContents

* chore: add non about blank test
This commit is contained in:
Shelley Vohr 2024-09-20 09:56:03 +02:00 committed by GitHub
parent bcb7362ab9
commit f89bd745d5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 8 deletions

View file

@ -71,14 +71,6 @@ export function openGuestWindow ({ embedder, guest, referrer, disposition, postD
throw new Error('Invalid webContents. Created window should be connected to webContents passed with options object.');
}
webContents.loadURL(url, {
httpReferrer: referrer,
...(postData && {
postData,
extraHeaders: formatPostDataHeaders(postData as Electron.UploadRawData[])
})
});
handleWindowLifecycleEvents({ embedder, frameName, guest, outlivesOpener });
}