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

Commits:

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;