Skip to content
Snippets Groups Projects
Verified Commit fc0af914 authored by ma1's avatar ma1
Browse files

fixup! Bug 40597: Implement TorSettings module

parent a662a454
No related branches found
No related tags found
1 merge request!1258Bug 43104: Local files and extensions can't be loaded in new windows before bootstrap
......@@ -1302,7 +1302,15 @@ export const TorConnect = {
// which redirect after bootstrapping
getURIsToLoad(uriVariant) {
const uris = this.fixupURIs(uriVariant);
lazy.logger.debug(`Will load after bootstrap => [${uris.join(", ")}]`);
return uris.map(uri => this.getRedirectURL(uri));
const localUriRx = /^(file:\/\/\/|moz-extension:)/;
lazy.logger.debug(
`Will load after bootstrap => [${uris
.filter(uri => !localUriRx.test(uri))
.join(", ")}]`
);
return uris.map(uri =>
localUriRx.test(uri) ? uri : this.getRedirectURL(uri)
);
},
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment