[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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:

Changes:

  • toolkit/actors/NetErrorChild.sys.mjs
    ... ... @@ -140,12 +140,15 @@ export class NetErrorChild extends RemotePageChild {
    140 140
             shortDesc.appendChild(span);
    
    141 141
           },
    
    142 142
         };
    
    143
    -
    
    144
    -    Services.uriFixup.checkHost(
    
    145
    -      info.fixedURI,
    
    146
    -      onLookupCompleteListener,
    
    147
    -      this.document.nodePrincipal.originAttributes
    
    148
    -    );
    
    143
    +    try {
    
    144
    +      Services.uriFixup.checkHost(
    
    145
    +        info.fixedURI,
    
    146
    +        onLookupCompleteListener,
    
    147
    +        this.document.nodePrincipal.originAttributes
    
    148
    +      );
    
    149
    +    } catch (e) {
    
    150
    +      // DNS resolution may fail synchronously if forbidden by proxy
    
    151
    +    }
    
    149 152
       }
    
    150 153
     
    
    151 154
       // Get the header from the http response of the failed channel. This function
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits