Forward webview visibility change events from browser process
This commit is contained in:
parent
7564a9973b
commit
1d84d83fd4
4 changed files with 16 additions and 10 deletions
|
@ -1086,7 +1086,7 @@ describe('<webview> tag', function () {
|
|||
assert.equal(visibilityState, 'hidden')
|
||||
assert.equal(hidden, true)
|
||||
|
||||
w.webContents.send('ELECTRON_RENDERER_WINDOW_VISIBILITY_CHANGE', 'visible')
|
||||
w.webContents.emit('-window-visibility-change', 'visible')
|
||||
|
||||
ipcMain.once('pong', function (event, visibilityState, hidden) {
|
||||
assert.equal(visibilityState, 'visible')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue