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

[tor-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-128.2.0esr-14.0-1] fixup! Bug 4234: Use the Firefox Update Process for Base Browser.



Title: GitLab

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

Commits:

  • 3f90b231
    by Pier Angelo Vendrame at 2024-09-02T10:23:18+02:00
    fixup! Bug 4234: Use the Firefox Update Process for Base Browser.
    
    Bug 42747: Discard unsupported updates earlier.
    
    Firefox's updater has a function to select updates, which checks mainly
    the version number.
    Therefore, a more recent update that is unsupported will be chosen over
    a compatible one.
    We patch this to be able to provide an alternative update path to
    Windows 7.
    

1 changed file:

Changes:

  • toolkit/mozapps/update/UpdateService.sys.mjs
    ... ... @@ -3700,18 +3700,20 @@ export class UpdateService {
    3700 3700
     
    
    3701 3701
           switch (update.type) {
    
    3702 3702
             case "major":
    
    3703
    -          if (!majorUpdate) {
    
    3703
    +          if (!majorUpdate || majorUpdate.unsupported) {
    
    3704 3704
                 majorUpdate = update;
    
    3705 3705
               } else if (
    
    3706
    +            !update.unsupported &&
    
    3706 3707
                 vc.compare(majorUpdate.appVersion, update.appVersion) <= 0
    
    3707 3708
               ) {
    
    3708 3709
                 majorUpdate = update;
    
    3709 3710
               }
    
    3710 3711
               break;
    
    3711 3712
             case "minor":
    
    3712
    -          if (!minorUpdate) {
    
    3713
    +          if (!minorUpdate || minorUpdate.unsupported) {
    
    3713 3714
                 minorUpdate = update;
    
    3714 3715
               } else if (
    
    3716
    +            !update.unsupported &&
    
    3715 3717
                 vc.compare(minorUpdate.appVersion, update.appVersion) <= 0
    
    3716 3718
               ) {
    
    3717 3719
                 minorUpdate = update;
    

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits