Call callback asynchronously to match original issue
This commit is contained in:
parent
078c924760
commit
3f8e173452
1 changed files with 3 additions and 1 deletions
|
@ -959,7 +959,9 @@ describe('<webview> tag', function () {
|
||||||
session.fromPartition(webview.partition).setPermissionRequestHandler(function (webContents, permission, callback) {
|
session.fromPartition(webview.partition).setPermissionRequestHandler(function (webContents, permission, callback) {
|
||||||
if (webContents.getId() === webview.getId()) {
|
if (webContents.getId() === webview.getId()) {
|
||||||
assert.equal(permission, 'notifications')
|
assert.equal(permission, 'notifications')
|
||||||
callback(true)
|
setTimeout(function () {
|
||||||
|
callback(true)
|
||||||
|
}, 10)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
document.body.appendChild(webview)
|
document.body.appendChild(webview)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue