ma1 pushed to branch tor-browser-115.4.0esr-13.5-1 at The Tor Project /
Applications / Tor Browser
Commits:
aa90395e by hackademix at 2023-11-07T12:56:55+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
=====================================
@@ -140,12 +140,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/tor-browser/-/commit/aa90395e3ee52897434d71254d0df48c1582befe
--
View it on GitLab:
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/aa90395e3ee52897434d71254d0df48c1582befe
You're receiving this email because of your account on gitlab.torproject.org.
_______________________________________________
tbb-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tbb-commits