mirror of
https://github.com/electron/electron.git
synced 2026-01-25 15:28:11 -05:00
Make BrowserWindowProxy guestId non-writeable
This commit is contained in:
@@ -25,7 +25,13 @@ var BrowserWindowProxy = (function () {
|
||||
}
|
||||
|
||||
function BrowserWindowProxy (guestId1) {
|
||||
this.guestId = guestId1
|
||||
Object.defineProperty(this, 'guestId', {
|
||||
configurable: false,
|
||||
enumerable: true,
|
||||
writeable: false,
|
||||
value: guestId1
|
||||
})
|
||||
|
||||
this.closed = false
|
||||
ipcRenderer.once('ELECTRON_GUEST_WINDOW_MANAGER_WINDOW_CLOSED_' + this.guestId, () => {
|
||||
BrowserWindowProxy.remove(this.guestId)
|
||||
|
||||
Reference in New Issue
Block a user