ma1 pushed to branch tor-browser-115.16.0esr-13.5-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • toolkit/modules/TorConnect.sys.mjs
    ... ... @@ -1301,7 +1301,15 @@ export const TorConnect = {
    1301 1301
       // which redirect after bootstrapping
    
    1302 1302
       getURIsToLoad(uriVariant) {
    
    1303 1303
         const uris = this.fixupURIs(uriVariant);
    
    1304
    -    lazy.logger.debug(`Will load after bootstrap => [${uris.join(", ")}]`);
    
    1305
    -    return uris.map(uri => this.getRedirectURL(uri));
    
    1304
    +    const localUriRx = /^(file:\/\/\/|moz-extension:)/;
    
    1305
    +    lazy.logger.debug(
    
    1306
    +      `Will load after bootstrap => [${uris
    
    1307
    +        .filter(uri => !localUriRx.test(uri))
    
    1308
    +        .join(", ")}]`
    
    1309
    +    );
    
    1310
    +
    
    1311
    +    return uris.map(uri =>
    
    1312
    +      localUriRx.test(uri) ? uri : this.getRedirectURL(uri)
    
    1313
    +    );
    
    1306 1314
       },
    
    1307 1315
     };