mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not expose Node's external strings (#13452)
This commit is contained in:
@@ -70,6 +70,15 @@ describe('chromium feature', () => {
|
||||
})
|
||||
})
|
||||
|
||||
describe('accessing key names also used as Node.js module names', () => {
|
||||
it('does not crash', (done) => {
|
||||
w = new BrowserWindow({show: false})
|
||||
w.webContents.once('did-finish-load', () => { done() })
|
||||
w.webContents.once('crashed', () => done(new Error('WebContents crashed.')))
|
||||
w.loadURL(`file://${fixtures}/pages/external-string.html`)
|
||||
})
|
||||
})
|
||||
|
||||
describe('navigator.webkitGetUserMedia', () => {
|
||||
it('calls its callbacks', (done) => {
|
||||
navigator.webkitGetUserMedia({
|
||||
|
||||
1
spec/fixtures/pages/external-string.html
vendored
Normal file
1
spec/fixtures/pages/external-string.html
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<script>window.stream</script>
|
||||
2
vendor/node
vendored
2
vendor/node
vendored
Submodule vendor/node updated: 18aeda2077...e61694e449
Reference in New Issue
Block a user