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


Commits:
542b7313 by Pier Angelo Vendrame at 2025-08-11T15:13:47+02:00
fixup! BB 40925: Implemented the Security Level component

BB 43785: Fix DDG HTML in Safest.

During the rebases, we broke the automatic redirects to the HTML
version of DuckDuckGo. This commit fixes them.

- - - - -


1 changed file:

- toolkit/components/search/SearchEngine.sys.mjs


Changes:

=====================================
toolkit/components/search/SearchEngine.sys.mjs
=====================================
@@ -359,18 +359,20 @@ export class EngineURL {
       lazy.SecurityLevelPrefs?.securityLevel === "safest" &&
       this.type === lazy.SearchUtils.URL_TYPE.SEARCH
     ) {
-      let host = this.templateHost;
+      let host = templateURI.host;
       try {
         host = Services.eTLD.getBaseDomainFromHost(host);
       } catch (ex) {
         lazy.logConsole.warn("Failed to get a FPD", ex, host);
       }
-      if (
-        host === "duckduckgo.com" ||
+      if (host === "duckduckgo.com") {
+        templateURI.host = "html.duckduckgo.com";
+        templateURI.pathname = "/html";
+      } else if (
         host ===
-          "duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion"
+        "duckduckgogg42xjoc72x3sjasowoarfbgcmvfimaftt6twagswzczad.onion"
       ) {
-        query += "html";
+        templateURI.pathname = "/html";
       }
     }
 



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/542b7313e9a1b1e93aaf4f2b42d39770724d3e5a

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/542b7313e9a1b1e93aaf4f2b42d39770724d3e5a
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tbb-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to