diff --git a/spec/chromium-spec.js b/spec/chromium-spec.js index e1c79d8eb45..938798f001b 100644 --- a/spec/chromium-spec.js +++ b/spec/chromium-spec.js @@ -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({ diff --git a/spec/fixtures/pages/jquery.html b/spec/fixtures/pages/jquery.html new file mode 100644 index 00000000000..0a2ba1fb288 --- /dev/null +++ b/spec/fixtures/pages/jquery.html @@ -0,0 +1,7 @@ + + + + + + + diff --git a/vendor/libchromiumcontent b/vendor/libchromiumcontent index 2006b899d19..a604af6f51a 160000 --- a/vendor/libchromiumcontent +++ b/vendor/libchromiumcontent @@ -1 +1 @@ -Subproject commit 2006b899d1927dd260ea0f170bdf01c2d5eda6a1 +Subproject commit a604af6f51a2e816592db475159ee898f212d9db