Commit f42f88e8 authored by henry's avatar henry Committed by Pier Angelo Vendrame
Browse files

fixup! TB 27476: Implement about:torconnect captive portal within Tor Browser

TB 43463: Renamed TorConnect getCountryCodes to getFrequentRegions.
parent 0e9b572f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -132,8 +132,8 @@ export class TorConnectParent extends JSWindowActorParent {
          stage: TorConnect.stage,
          quickstartEnabled: TorConnect.quickstart,
        };
      case "torconnect:get-country-codes":
        return TorConnect.getCountryCodes();
      case "torconnect:get-frequent-regions":
        return TorConnect.getFrequentRegions();
    }
    return undefined;
  }
+1 −1
Original line number Diff line number Diff line
@@ -610,7 +610,7 @@ class AboutTorConnect {

  showLocationForm(isChoose, buttonLabel) {
    this.hideButtons();
    RPMSendQuery("torconnect:get-country-codes").then(codes => {
    RPMSendQuery("torconnect:get-frequent-regions").then(codes => {
      if (codes && codes.length) {
        this.populateFrequentLocations(codes);
        this.setLocation();
+1 −1
Original line number Diff line number Diff line
@@ -271,7 +271,7 @@ export let RemotePageAccessManager = {
      ],
      RPMSendQuery: [
        "torconnect:get-init-args",
        "torconnect:get-country-codes",
        "torconnect:get-frequent-regions",
      ],
    },
    "about:welcome": {