fix: destroy WebContents synchronously on shutdown (#15541)
This commit is contained in:
parent
6162d9090d
commit
746beb0d8b
12 changed files with 122 additions and 13 deletions
6
spec/fixtures/api/leak-exit-webcontents.js
vendored
Normal file
6
spec/fixtures/api/leak-exit-webcontents.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
const { app, webContents } = require('electron')
|
||||
app.on('ready', function () {
|
||||
webContents.create({})
|
||||
|
||||
process.nextTick(() => app.quit())
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue