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

ma1 (@ma1) git at gitlab.torproject.org
Mon Oct 21 08:48:54 UTC 2024



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


Commits:
fc0af914 by hackademix at 2024-10-18T10:54:46+02:00
fixup! Bug 40597: Implement TorSettings module

- - - - -


1 changed file:

- toolkit/modules/TorConnect.sys.mjs


Changes:

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



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

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/fc0af9142daca757ae261e00f01b240a925a6055
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/049b1f5c/attachment-0001.htm>


More information about the tor-commits mailing list