[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.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon Sep 30 20:07:54 UTC 2024



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:

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


Changes:

=====================================
toolkit/mozapps/update/UpdateService.sys.mjs
=====================================
@@ -3680,18 +3680,20 @@ UpdateService.prototype = {
 
       switch (aUpdate.type) {
         case "major":
-          if (!majorUpdate) {
+          if (!majorUpdate || majorUpdate.unsupported) {
             majorUpdate = aUpdate;
           } else if (
+            !aUpdate.unsupported &&
             vc.compare(majorUpdate.appVersion, aUpdate.appVersion) <= 0
           ) {
             majorUpdate = aUpdate;
           }
           break;
         case "minor":
-          if (!minorUpdate) {
+          if (!minorUpdate || minorUpdate.unsupported) {
             minorUpdate = aUpdate;
           } else if (
+            !aUpdate.unsupported &&
             vc.compare(minorUpdate.appVersion, aUpdate.appVersion) <= 0
           ) {
             minorUpdate = aUpdate;



View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/4dd63a6046c2546ee3a6399afe177069bac527fb

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/4dd63a6046c2546ee3a6399afe177069bac527fb
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240930/c2d980d8/attachment-0001.htm>


More information about the tor-commits mailing list