feat: Upgrade to Chromium 71.0.3578.98 (#15966)

This commit is contained in:
Robo 2019-01-12 06:30:43 +05:30 committed by Jeremy Apthorp
parent 92ddfd0d4c
commit 52fe92d02e
204 changed files with 2291 additions and 1760 deletions

View file

@ -1005,19 +1005,11 @@ describe('chromium feature', () => {
})
it('cannot access localStorage', (done) => {
contents.on('crashed', (event, killed) => {
// Site isolation ON: process is killed for trying to access resources without permission.
if (process.platform !== 'win32') {
// Chromium on Windows does not set this flag correctly.
assert.strictEqual(killed, true, 'Process should\'ve been killed')
}
done()
})
ipcMain.once('local-storage-response', (event, message) => {
// Site isolation OFF: access is refused.
assert.strictEqual(
message,
'Failed to read the \'localStorage\' property from \'Window\': Access is denied for this document.')
done()
})
contents.loadURL(protocolName + '://host/localStorage')
})
@ -1036,7 +1028,7 @@ describe('chromium feature', () => {
ipcMain.once('web-sql-response', (event, error) => {
assert.strictEqual(
error,
'An attempt was made to break through the security policy of the user agent.')
'Failed to execute \'openDatabase\' on \'Window\': Access to the WebDatabase API is denied in this context.')
done()
})
contents.loadURL(`${protocolName}://host/WebSQL`)
@ -1044,15 +1036,19 @@ describe('chromium feature', () => {
it('cannot access indexedDB', (done) => {
ipcMain.once('indexed-db-response', (event, error) => {
assert.strictEqual(error, 'The user denied permission to access the database.')
assert.strictEqual(
error,
'Failed to execute \'open\' on \'IDBFactory\': access to the Indexed Database API is denied in this context.')
done()
})
contents.loadURL(`${protocolName}://host/indexedDB`)
})
it('cannot access cookie', (done) => {
ipcMain.once('cookie-response', (event, cookie) => {
assert(!cookie)
ipcMain.once('cookie-response', (event, error) => {
assert.strictEqual(
error,
'Failed to set the \'cookie\' property on \'Document\': Access is denied for this document.')
done()
})
contents.loadURL(`${protocolName}://host/cookie`)