[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-148.0a1-16.0-2] fixup! BB 4234: Use the Firefox Update Process for Base Browser.



Title: GitLab

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:

Changes:

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

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

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx