Track visited parents and null out cycles

This commit is contained in:
Kevin Sawicki 2017-01-04 14:50:05 -08:00
parent 12382f064b
commit 1944fdc962
3 changed files with 28 additions and 14 deletions

View file

@ -270,10 +270,13 @@ describe('chromium feature', function () {
w = BrowserWindow.fromId(ipcRenderer.sendSync('create-window-with-options-cycle'))
w.loadURL('file://' + fixtures + '/pages/window-open.html')
w.webContents.once('new-window', (event, url, frameName, disposition, options) => {
assert.deepEqual(options, {
show: false,
foo: {
bar: null
assert.equal(options.show, false)
assert.deepEqual(options.foo, {
bar: null,
baz: {
hello: {
world: true
}
}
})
done()