[tbb-commits] [tor-browser/tor-browser-91.2.0esr-11.0-1] fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser

sysrqb at torproject.org sysrqb at torproject.org
Wed Oct 6 13:32:12 UTC 2021


commit f2584ebad73ada6b4b570ada7401e2d3b127a2ce
Author: Matthew Finkel <sysrqb at torproject.org>
Date:   Fri Sep 3 03:52:23 2021 +0000

    fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser
    
    This reverts commit 563c8779fef936a8bb5454578765843187be396b.
---
 browser/modules/TorConnect.jsm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/browser/modules/TorConnect.jsm b/browser/modules/TorConnect.jsm
index 2f947374797a..17a786dc31f0 100644
--- a/browser/modules/TorConnect.jsm
+++ b/browser/modules/TorConnect.jsm
@@ -472,7 +472,9 @@ const TorConnect = (() => {
             // will attempt to convert user-supplied string to a uri, fallback to about:tor if cannot convert
             // to valid uri object
             let uriStringToUri = (uriString) => {
-                let uri = Services.uriFixup.createFixupURI(uriString, 0);
+                const fixupFlags = Ci.nsIURIFixup.FIXUP_FLAG_NONE;
+                let uri = Services.uriFixup.getFixupURIInfo(uriString, fixupFlags)
+                  .preferredURI;
                 return uri ? uri : Services.io.newURI("about:tor");
             };
             let uris = uriStrings.map(uriStringToUri);





More information about the tbb-commits mailing list