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


Commits:
8f159297 by Pier Angelo Vendrame at 2026-02-26T13:18:16+01:00
fixup! BB 4234: Use the Firefox Update Process for Base Browser.

BB 44668: Allow to replace detailsURL with unsupportedURL.

We perform unsupported detection locally, rather than with a
server-side logic, that is what Mozilla does.
So, we send unsupported users to the details of the actual update,
rather than sending them to a page with details of why they are
unsupported.
With this patch, we can distinguish those cases, and send user to a
more appropriate page when needed.

- - - - -


2 changed files:

- toolkit/.eslintrc.mjs
- toolkit/mozapps/update/UpdateService.sys.mjs


Changes:

=====================================
toolkit/.eslintrc.mjs
=====================================
@@ -7,7 +7,7 @@ export default [
     rules: {
       // XXX Bug 1326071 - This should be reduced down - probably to 20 or to
       // be removed & synced with the mozilla/recommended value.
-      complexity: ["error", 47],
+      complexity: ["error", 49],
     },
   },
 ];


=====================================
toolkit/mozapps/update/UpdateService.sys.mjs
=====================================
@@ -2491,6 +2491,13 @@ class Update {
       this.elevationFailure = false;
     }
 
+    if (this.unsupported && update.hasAttribute("unsupportedURL")) {
+      // Override the detailsURL with the dedicated link for the EOL.
+      // Otherwise it will point to the release blog post for the wrong 
version.
+      // See tor-browser#44668.
+      this.detailsURL = update.getAttribute("unsupportedURL");
+    }
+
     if (!this.detailsURL) {
       try {
         // Try using a default details URL supplied by the distribution



View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8f159297b4120b7494d1fec3c9375777940f4277

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/8f159297b4120b7494d1fec3c9375777940f4277
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