Revert "feat: upgrade to Chromium 72.0.3626.52 (#16334)"
This reverts commit 1918e76913
.
This commit is contained in:
parent
58a6fe13d6
commit
0b85fb7ea2
178 changed files with 1734 additions and 2102 deletions
|
@ -2117,8 +2117,7 @@ describe('BrowserWindow module', () => {
|
|||
})
|
||||
})
|
||||
|
||||
// visibilitychange event is broken upstream, see crbug.com/920839
|
||||
xdescribe('document.visibilityState/hidden', () => {
|
||||
describe('document.visibilityState/hidden', () => {
|
||||
beforeEach(() => { w.destroy() })
|
||||
|
||||
function onVisibilityChange (callback) {
|
||||
|
|
|
@ -562,19 +562,6 @@ describe('session module', () => {
|
|||
|
||||
it('allows configuring proxy settings', (done) => {
|
||||
const config = { proxyRules: 'http=myproxy:80' }
|
||||
customSession.setProxy(config, () => {
|
||||
customSession.resolveProxy('http://example.com/', (proxy) => {
|
||||
assert.strictEqual(proxy, 'PROXY myproxy:80')
|
||||
done()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
it('allows removing the implicit bypass rules for localhost', (done) => {
|
||||
const config = {
|
||||
proxyRules: 'http=myproxy:80',
|
||||
proxyBypassRules: '<-loopback>'
|
||||
}
|
||||
customSession.setProxy(config, () => {
|
||||
customSession.resolveProxy('http://localhost', (proxy) => {
|
||||
assert.strictEqual(proxy, 'PROXY myproxy:80')
|
||||
|
@ -612,7 +599,7 @@ describe('session module', () => {
|
|||
proxyBypassRules: '<local>'
|
||||
}
|
||||
customSession.setProxy(config, () => {
|
||||
customSession.resolveProxy('http://example/', (proxy) => {
|
||||
customSession.resolveProxy('http://localhost', (proxy) => {
|
||||
assert.strictEqual(proxy, 'DIRECT')
|
||||
done()
|
||||
})
|
||||
|
|
|
@ -264,9 +264,7 @@ describe('webContents module', () => {
|
|||
|
||||
describe('openDevTools() API', () => {
|
||||
it('can show window with activation', async () => {
|
||||
const focused = emittedOnce(w, 'focus')
|
||||
w.show()
|
||||
await focused
|
||||
assert.strictEqual(w.isFocused(), true)
|
||||
const devtoolsOpened = emittedOnce(w.webContents, 'devtools-opened')
|
||||
w.webContents.openDevTools({ mode: 'detach', activate: true })
|
||||
|
|
|
@ -1332,12 +1332,10 @@ describe('<webview> tag', function () {
|
|||
nodeIntegration: true
|
||||
}
|
||||
})
|
||||
const didAttachWebview = emittedOnce(w.webContents, 'did-attach-webview')
|
||||
const webviewDomReady = emittedOnce(ipcMain, 'webview-dom-ready')
|
||||
w.loadFile(path.join(fixtures, 'pages', 'webview-did-attach-event.html'))
|
||||
|
||||
const [, webContents] = await didAttachWebview
|
||||
const [, id] = await webviewDomReady
|
||||
const [, webContents] = await emittedOnce(w.webContents, 'did-attach-webview')
|
||||
const [, id] = await emittedOnce(ipcMain, 'webview-dom-ready')
|
||||
expect(webContents.id).to.equal(id)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue