mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
fix the crash when loading site with jquery (#13475)
This commit is contained in:
@@ -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', () => {
|
||||
it('calls its callbacks', (done) => {
|
||||
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
Submodule vendor/libchromiumcontent updated: 76d1dc5929...0628cd925e
Reference in New Issue
Block a user