Pier Angelo Vendrame pushed to branch tor-browser-149.0a1-16.0-2 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • toolkit/components/tor-launcher/TorDomainIsolator.sys.mjs
    ... ... @@ -321,8 +321,10 @@ class TorDomainIsolatorImpl {
    321 321
         }
    
    322 322
         try {
    
    323 323
           const channel = aChannel.QueryInterface(Ci.nsIChannel);
    
    324
    -      let firstPartyDomain = channel.loadInfo.originAttributes.firstPartyDomain;
    
    325
    -      const userContextId = channel.loadInfo.originAttributes.userContextId;
    
    324
    +      let firstPartyDomain =
    
    325
    +        channel.loadInfo.originAttributes?.firstPartyDomain;
    
    326
    +      const userContextId =
    
    327
    +        channel.loadInfo.originAttributes?.userContextId ?? 0;
    
    326 328
           const scheme = channel.loadInfo.loadingPrincipal?.URI?.scheme;
    
    327 329
           const filePath = channel.loadInfo.loadingPrincipal?.URI?.filePath;
    
    328 330
           if (
    
    ... ... @@ -375,7 +377,7 @@ class TorDomainIsolatorImpl {
    375 377
           );
    
    376 378
         } catch (e) {
    
    377 379
           logger.error("Error while setting a new proxy", e);
    
    378
    -      return null;
    
    380
    +      return aProxy;
    
    379 381
         }
    
    380 382
       }
    
    381 383