Pier Angelo Vendrame pushed to branch tor-browser-140.1.0esr-15.0-1 at The Tor Project / Applications / Tor Browser

Commits:

1 changed file:

Changes:

  • toolkit/components/search/SearchEngine.sys.mjs
    ... ... @@ -359,18 +359,20 @@ export class EngineURL {
    359 359
           lazy.SecurityLevelPrefs?.securityLevel === "safest" &&
    
    360 360
           this.type === lazy.SearchUtils.URL_TYPE.SEARCH
    
    361 361
         ) {
    
    362
    -      let host = this.templateHost;
    
    362
    +      let host = templateURI.host;
    
    363 363
           try {
    
    364 364
             host = Services.eTLD.getBaseDomainFromHost(host);
    
    365 365
           } catch (ex) {
    
    366 366
             lazy.logConsole.warn("Failed to get a FPD", ex, host);
    
    367 367
           }
    
    368
    -      if (
    
    369
    -        host === "duckduckgo.com" ||
    
    368
    +      if (host === "duckduckgo.com") {
    
    369
    +        templateURI.host = "html.duckduckgo.com";
    
    370
    +        templateURI.pathname = "/html";
    
    371
    +      } else if (
    
    370 372
             host ===
    
    371
    -          "duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion"
    
    373
    +        "duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion"
    
    372 374
           ) {
    
    373
    -        query += "html";
    
    375
    +        templateURI.pathname = "/html";
    
    374 376
           }
    
    375 377
         }
    
    376 378