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

fixup! Bug 4234: Use the Firefox Update Process for Base Browser.

BB 44668: Allow to replace detailsURL with unsupportedURL.

We perform unsupported detection locally, rather than with a
server-side logic, that is what Mozilla does.
So, we send unsupported users to the details of the actual update,
rather than sending them to a page with details of why they are
unsupported.
With this patch, we can distinguish those cases, and send user to a
more appropriate page when needed.
parent 3f1d4f8c
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2420,6 +2420,13 @@ function Update(update) {
    this.elevationFailure = false;
  }

  if (this.unsupported && update.hasAttribute("unsupportedURL")) {
    // Override the detailsURL with the dedicated link for the EOL.
    // Otherwise it will point to the release blog post for the wrong version.
    // See tor-browser#44668.
    this.detailsURL = update.getAttribute("unsupportedURL");
  }

  if (!this.detailsURL) {
    try {
      // Try using a default details URL supplied by the distribution