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

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



Title: GitLab

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

Commits:

  • 4dd63a60
    by Pier Angelo Vendrame at 2024-09-30T22:07:38+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
    ... ... @@ -3680,18 +3680,20 @@ UpdateService.prototype = {
    3680 3680
     
    
    3681 3681
           switch (aUpdate.type) {
    
    3682 3682
             case "major":
    
    3683
    -          if (!majorUpdate) {
    
    3683
    +          if (!majorUpdate || majorUpdate.unsupported) {
    
    3684 3684
                 majorUpdate = aUpdate;
    
    3685 3685
               } else if (
    
    3686
    +            !aUpdate.unsupported &&
    
    3686 3687
                 vc.compare(majorUpdate.appVersion, aUpdate.appVersion) <= 0
    
    3687 3688
               ) {
    
    3688 3689
                 majorUpdate = aUpdate;
    
    3689 3690
               }
    
    3690 3691
               break;
    
    3691 3692
             case "minor":
    
    3692
    -          if (!minorUpdate) {
    
    3693
    +          if (!minorUpdate || minorUpdate.unsupported) {
    
    3693 3694
                 minorUpdate = aUpdate;
    
    3694 3695
               } else if (
    
    3696
    +            !aUpdate.unsupported &&
    
    3695 3697
                 vc.compare(minorUpdate.appVersion, aUpdate.appVersion) <= 0
    
    3696 3698
               ) {
    
    3697 3699
                 minorUpdate = aUpdate;
    

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