Merge pull request #5972 from electron/non-writeable-guest-id
Make guestId on BrowserWindowProxy non-writeable
This commit is contained in:
commit
4373dc1eac
2 changed files with 13 additions and 1 deletions
|
@ -164,6 +164,12 @@ describe('chromium feature', function () {
|
|||
var b = window.open('about:blank', '', 'show=no')
|
||||
assert.equal(b.closed, false)
|
||||
assert.equal(b.constructor.name, 'BrowserWindowProxy')
|
||||
|
||||
// Check that guestId is not writeable
|
||||
assert(b.guestId)
|
||||
b.guestId = 'anotherValue'
|
||||
assert.notEqual(b.guestId, 'anoterValue')
|
||||
|
||||
b.close()
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue