Skip to content

Commit 316eb8f

Browse files
nitsakhMarshallOfSound
authored andcommitted
fix: Update tests for new schemes api (#125)
BREAKING CHANGE: Update tests for new schemes api * update electron commit
1 parent dc4c6e5 commit 316eb8f

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

test-smoke/electron/test/main.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -827,8 +827,7 @@ powerSaveBlocker.stop(id);
827827
// https://github.com/atom/electron/blob/master/docs/api/protocol.md
828828

829829
app.on("ready", () => {
830-
protocol.registerStandardSchemes(["https"]);
831-
protocol.registerServiceWorkerSchemes(["https"]);
830+
protocol.registerSchemesAsPrivileged([{ scheme: "https", privileges: { standard: true, allowServiceWorkers: true } }]);
832831

833832
protocol.registerFileProtocol("atom", (request, callback) => {
834833
callback(`${__dirname}/${request.url}`);

test-smoke/electron/test/renderer.ts

-7
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ webFrame.setSpellCheckProvider('en-US', {
7070
}
7171
})
7272

73-
webFrame.registerURLSchemeAsBypassingCSP('app');
74-
webFrame.registerURLSchemeAsPrivileged('app');
75-
webFrame.registerURLSchemeAsPrivileged('app', {
76-
secure: true,
77-
supportFetchAPI: true,
78-
});
79-
8073
webFrame.insertText('text');
8174

8275
webFrame.executeJavaScript('JSON.stringify({})', false, (result) => {

vendor/fetch-docs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const mkdirp = require('mkdirp').sync
77
const os = require('os')
88

99
const downloadPath = path.join(os.tmpdir(), 'electron-api-tmp')
10-
const ELECTRON_COMMIT = '0c96f14a5b702036559a8012ef0dd9649221d5d9'
10+
const ELECTRON_COMMIT = '1a93b81a10fa63fce2e404ae71c0289d373e08f4'
1111

1212
rm(downloadPath)
1313

0 commit comments

Comments
 (0)