File tree 3 files changed +2
-10
lines changed
3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -827,8 +827,7 @@ powerSaveBlocker.stop(id);
827
827
// https://github.com/atom/electron/blob/master/docs/api/protocol.md
828
828
829
829
app . on ( "ready" , ( ) => {
830
- protocol . registerStandardSchemes ( [ "https" ] ) ;
831
- protocol . registerServiceWorkerSchemes ( [ "https" ] ) ;
830
+ protocol . registerSchemesAsPrivileged ( [ { scheme : "https" , privileges : { standard : true , allowServiceWorkers : true } } ] ) ;
832
831
833
832
protocol . registerFileProtocol ( "atom" , ( request , callback ) => {
834
833
callback ( `${ __dirname } /${ request . url } ` ) ;
Original file line number Diff line number Diff line change @@ -70,13 +70,6 @@ webFrame.setSpellCheckProvider('en-US', {
70
70
}
71
71
} )
72
72
73
- webFrame . registerURLSchemeAsBypassingCSP ( 'app' ) ;
74
- webFrame . registerURLSchemeAsPrivileged ( 'app' ) ;
75
- webFrame . registerURLSchemeAsPrivileged ( 'app' , {
76
- secure : true ,
77
- supportFetchAPI : true ,
78
- } ) ;
79
-
80
73
webFrame . insertText ( 'text' ) ;
81
74
82
75
webFrame . executeJavaScript ( 'JSON.stringify({})' , false , ( result ) => {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const mkdirp = require('mkdirp').sync
7
7
const os = require ( 'os' )
8
8
9
9
const downloadPath = path . join ( os . tmpdir ( ) , 'electron-api-tmp' )
10
- const ELECTRON_COMMIT = '0c96f14a5b702036559a8012ef0dd9649221d5d9 '
10
+ const ELECTRON_COMMIT = '1a93b81a10fa63fce2e404ae71c0289d373e08f4 '
11
11
12
12
rm ( downloadPath )
13
13
You can’t perform that action at this time.
0 commit comments