[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.4.0esr-13.0-1] Bug 42194: Fix blank net error page on failed DNS resolution with active proxy.

ma1 (@ma1) git at gitlab.torproject.org
Wed Nov 8 12:46:29 UTC 2023



ma1 pushed to branch mullvad-browser-115.4.0esr-13.0-1 at The Tor Project / Applications / Mullvad Browser


Commits:
23d4e4c4 by hackademix at 2023-11-08T13:45:19+01:00
Bug 42194: Fix blank net error page on failed DNS resolution with active proxy.

- - - - -


1 changed file:

- toolkit/actors/NetErrorChild.sys.mjs


Changes:

=====================================
toolkit/actors/NetErrorChild.sys.mjs
=====================================
@@ -133,12 +133,15 @@ export class NetErrorChild extends RemotePageChild {
         shortDesc.appendChild(span);
       },
     };
-
-    Services.uriFixup.checkHost(
-      info.fixedURI,
-      onLookupCompleteListener,
-      this.document.nodePrincipal.originAttributes
-    );
+    try {
+      Services.uriFixup.checkHost(
+        info.fixedURI,
+        onLookupCompleteListener,
+        this.document.nodePrincipal.originAttributes
+      );
+    } catch (e) {
+      // DNS resolution may fail synchronously if forbidden by proxy
+    }
   }
 
   // Get the header from the http response of the failed channel. This function



View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/23d4e4c459c271d9f0d6346b897f006de68dd3e6

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/23d4e4c459c271d9f0d6346b897f006de68dd3e6
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/tbb-commits/attachments/20231108/13402fea/attachment-0001.htm>


More information about the tbb-commits mailing list