Commit 0807d898 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

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.
parent 1bf01d0d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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;