[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.16.0esr-13.5-1] fixup! Bug 40597: Implement TorSettings module

ma1 (@ma1) git at gitlab.torproject.org
Mon Oct 21 09:02:49 UTC 2024



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


Commits:
8dbe6b39 by hackademix at 2024-10-21T11:02:24+02:00
fixup! Bug 40597: Implement TorSettings module

- - - - -


1 changed file:

- toolkit/modules/TorConnect.sys.mjs


Changes:

=====================================
toolkit/modules/TorConnect.sys.mjs
=====================================
@@ -1301,7 +1301,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)
+    );
   },
 };



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8dbe6b394b19a281377fc975c0aa439a922b0c21

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8dbe6b394b19a281377fc975c0aa439a922b0c21
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20241021/61c2b130/attachment-0001.htm>


More information about the tor-commits mailing list