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

Commits:

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