fix the crash when loading site with jquery (#13475)
This commit is contained in:
parent
8ad3a2cc42
commit
e42c6d3eb7
3 changed files with 22 additions and 1 deletions
|
@ -79,6 +79,20 @@ describe('chromium feature', () => {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe('loading jquery', () => {
|
||||||
|
it('does not crash', (done) => {
|
||||||
|
w = new BrowserWindow({
|
||||||
|
show: false,
|
||||||
|
webPreferences: {
|
||||||
|
nodeIntegration: false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
w.webContents.once('did-finish-load', () => { done() })
|
||||||
|
w.webContents.once('crashed', () => done(new Error('WebContents crashed.')))
|
||||||
|
w.loadURL(`file://${fixtures}/pages/jquery.html`)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
describe('navigator.webkitGetUserMedia', () => {
|
describe('navigator.webkitGetUserMedia', () => {
|
||||||
it('calls its callbacks', (done) => {
|
it('calls its callbacks', (done) => {
|
||||||
navigator.webkitGetUserMedia({
|
navigator.webkitGetUserMedia({
|
||||||
|
|
7
spec/fixtures/pages/jquery.html
vendored
Normal file
7
spec/fixtures/pages/jquery.html
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="../../static/jquery-2.0.3.min.js"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
2
vendor/libchromiumcontent
vendored
2
vendor/libchromiumcontent
vendored
|
@ -1 +1 @@
|
||||||
Subproject commit 76d1dc5929dc841ebd220299aaf45ee5cdc50ffb
|
Subproject commit 0628cd925e513bfd873524621a91834b366899f1
|
Loading…
Add table
Reference in a new issue