test: move protocol specs to main process (#18923)

This commit is contained in:
Jeremy Apthorp 2019-06-27 14:20:29 -07:00 committed by GitHub
parent fdb2502a19
commit ec8697bcdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 304 additions and 328 deletions

View file

@ -27,6 +27,9 @@ global.standardScheme = 'app'
protocol.registerSchemesAsPrivileged([
{ scheme: global.standardScheme, privileges: { standard: true, secure: true } },
{ scheme: 'cors-blob', privileges: { corsEnabled: true, supportFetchAPI: true } },
{ scheme: 'cors', privileges: { corsEnabled: true, supportFetchAPI: true } },
{ scheme: 'no-cors', privileges: { supportFetchAPI: true } },
{ scheme: 'no-fetch', privileges: { corsEnabled: true } }
])
app.whenReady().then(() => {