feat: move webFrame scheme privilege methods to main process (#16416)
* chore: deprecate webFrame.registerURLSchemeAsPrivileged * Add register schemes protocol api * update branch to enable browser process API * Revert deprecation changes * Fetch API support * Updated api to take an array, still working on tests * Update tests * Remove web frame API * Minor changes * update scheme registrations on browser and renderer process * fix: enable ses.getBlobData spec * Update breaking changes doc
This commit is contained in:
parent
257de6a963
commit
940c4c0787
19 changed files with 319 additions and 319 deletions
|
@ -97,7 +97,14 @@ global.nativeModulesEnabled = !process.env.ELECTRON_SKIP_NATIVE_MODULE_TESTS
|
|||
// Register app as standard scheme.
|
||||
global.standardScheme = 'app'
|
||||
global.zoomScheme = 'zoom'
|
||||
protocol.registerStandardSchemes([global.standardScheme, global.zoomScheme], { secure: true })
|
||||
protocol.registerSchemesAsPrivileged([
|
||||
{ scheme: global.standardScheme, options: { standard: true, secure: true } },
|
||||
{ scheme: global.zoomScheme, options: { standard: true, secure: true } },
|
||||
{ scheme: 'cors', options: { corsEnabled: true, supportFetchAPI: true } },
|
||||
{ scheme: 'cors-blob', options: { corsEnabled: true, supportFetchAPI: true } },
|
||||
{ scheme: 'no-cors', options: { supportFetchAPI: true } },
|
||||
{ scheme: 'no-fetch', options: { corsEnabled: true } }
|
||||
])
|
||||
|
||||
app.on('window-all-closed', function () {
|
||||
app.quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue