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

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



Title: GitLab

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

Commits:

  • 6f9292eb
    by hackademix at 2023-11-08T13:44:18+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
    ... ... @@ -133,12 +133,15 @@ export class NetErrorChild extends RemotePageChild {
    133 133
             shortDesc.appendChild(span);
    
    134 134
           },
    
    135 135
         };
    
    136
    -
    
    137
    -    Services.uriFixup.checkHost(
    
    138
    -      info.fixedURI,
    
    139
    -      onLookupCompleteListener,
    
    140
    -      this.document.nodePrincipal.originAttributes
    
    141
    -    );
    
    136
    +    try {
    
    137
    +      Services.uriFixup.checkHost(
    
    138
    +        info.fixedURI,
    
    139
    +        onLookupCompleteListener,
    
    140
    +        this.document.nodePrincipal.originAttributes
    
    141
    +      );
    
    142
    +    } catch (e) {
    
    143
    +      // DNS resolution may fail synchronously if forbidden by proxy
    
    144
    +    }
    
    142 145
       }
    
    143 146
     
    
    144 147
       // 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