Commit f0049aaf authored by Igor Oliveira's avatar Igor Oliveira Committed by Georg Koppen
Browse files

Bug 27220 - Don't verify signature for Tor Button

Tor Browser for Desktop has a similar logic.
parent 01e283c1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1029,6 +1029,10 @@ function getSignedStatus(aRv, aCert, aAddonID) {
}

function shouldVerifySignedState(aAddon) {
  if (aAddon.id === "torbutton@torproject.org") {
    return false;
  }

  // Updated system add-ons should always have their signature checked
  if (aAddon._installLocation.name == KEY_APP_SYSTEM_ADDONS)
    return true;