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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-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 mullvad-browser-115.4.0esr-13.5-1 at The Tor Project / Applications / Mullvad Browser

Commits:

  • 5cb306c9
    by hackademix at 2023-11-07T17:22:34+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