chore: bump chromium to 4b6692e4cc2839729bb7ac009586a (master) (#21864)
* chore: bump chromium in DEPS to a1ea0d7aedd6b5fe58fbabfa3b05aa8ee41304ff * update patches * update extensions code * Remove WebPoint2007474
* fix build * chore: bump chromium in DEPS to 9351e26c2a3714f8bbb10789c71bb51b0b494c75 * update patches * Remove error description from the DidFailLoadWithError message2011280
* Make SimpleNetworkHintsHandlerImpl use the right NetworkIsolationKey1994430
* Rename libgtkui to gtk2011683
* [metrics] Remove histogram Startup.WarmStartTimeFromRemoteProcessStart*.2003211
* fix requestSingleInstanceLock test * chore: bump chromium in DEPS to a813567a4f17ea08292c2b26fa10d0ffd47010d9 * chore: bump chromium in DEPS to f0aca2de536ceecd6eb66e928051d11e6d11991f * chore: bump chromium in DEPS to 865556af6d0c9d990f5b1816cb792f7c3859667b * chore: bump chromium in DEPS to 98538fdd28c4b6692e4cc2839729bb7ac009586a * update patches * fix broken tests * Update node tests for v8 changes * Update node patches for test failures * Update for number of tests Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net> Co-authored-by: John Kleinschmidt <jkleinsc@github.com>
This commit is contained in:
parent
0bd8a97f38
commit
2b53788c35
55 changed files with 260 additions and 231 deletions
|
@ -595,7 +595,7 @@ describe('chromium features', () => {
|
|||
}
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open(${JSON.stringify(targetURL)})`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open(${JSON.stringify(targetURL)}); null }`)
|
||||
const [, window] = await emittedOnce(app, 'browser-window-created')
|
||||
await emittedOnce(window.webContents, 'did-finish-load')
|
||||
expect(await w.webContents.executeJavaScript(`b.location.href`)).to.equal(targetURL)
|
||||
|
@ -604,29 +604,29 @@ describe('chromium features', () => {
|
|||
it('defines a window.location setter', async () => {
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open("about:blank")`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open("about:blank"); null }`)
|
||||
const [, { webContents }] = await emittedOnce(app, 'browser-window-created')
|
||||
await emittedOnce(webContents, 'did-finish-load')
|
||||
// When it loads, redirect
|
||||
w.webContents.executeJavaScript(`b.location = ${JSON.stringify(`file://${fixturesPath}/pages/base-page.html`)}`)
|
||||
w.webContents.executeJavaScript(`{ b.location = ${JSON.stringify(`file://${fixturesPath}/pages/base-page.html`)}; null }`)
|
||||
await emittedOnce(webContents, 'did-finish-load')
|
||||
})
|
||||
|
||||
it('defines a window.location.href setter', async () => {
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open("about:blank")`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open("about:blank"); null }`)
|
||||
const [, { webContents }] = await emittedOnce(app, 'browser-window-created')
|
||||
await emittedOnce(webContents, 'did-finish-load')
|
||||
// When it loads, redirect
|
||||
w.webContents.executeJavaScript(`b.location.href = ${JSON.stringify(`file://${fixturesPath}/pages/base-page.html`)}`)
|
||||
w.webContents.executeJavaScript(`{ b.location.href = ${JSON.stringify(`file://${fixturesPath}/pages/base-page.html`)}; null }`)
|
||||
await emittedOnce(webContents, 'did-finish-load')
|
||||
})
|
||||
|
||||
it('open a blank page when no URL is specified', async () => {
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open()`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open(); null }`)
|
||||
const [, { webContents }] = await emittedOnce(app, 'browser-window-created')
|
||||
await emittedOnce(webContents, 'did-finish-load')
|
||||
expect(await w.webContents.executeJavaScript(`b.location.href`)).to.equal('about:blank')
|
||||
|
@ -635,7 +635,7 @@ describe('chromium features', () => {
|
|||
it('open a blank page when an empty URL is specified', async () => {
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open('')`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open(''); null }`)
|
||||
const [, { webContents }] = await emittedOnce(app, 'browser-window-created')
|
||||
await emittedOnce(webContents, 'did-finish-load')
|
||||
expect(await w.webContents.executeJavaScript(`b.location.href`)).to.equal('about:blank')
|
||||
|
@ -644,7 +644,7 @@ describe('chromium features', () => {
|
|||
it('sets the window title to the specified frameName', async () => {
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open('', 'hello')`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open('', 'hello'); null }`)
|
||||
const [, window] = await emittedOnce(app, 'browser-window-created')
|
||||
expect(window.getTitle()).to.equal('hello')
|
||||
})
|
||||
|
@ -652,7 +652,7 @@ describe('chromium features', () => {
|
|||
it('does not throw an exception when the frameName is a built-in object property', async () => {
|
||||
const w = new BrowserWindow({ show: false })
|
||||
w.loadURL('about:blank')
|
||||
w.webContents.executeJavaScript(`b = window.open('', '__proto__')`)
|
||||
w.webContents.executeJavaScript(`{ b = window.open('', '__proto__'); null }`)
|
||||
const [, window] = await emittedOnce(app, 'browser-window-created')
|
||||
expect(window.getTitle()).to.equal('__proto__')
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue