Commit 747ca252 authored by henry's avatar henry Committed by morgan
Browse files

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

TB 45236: Expose the progress bar to accessibility tools.
parent fe4fe5a2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -33,7 +33,15 @@
    ></script>
  </head>
  <body class="onion-pattern-background">
    <div id="progressBar" hidden="hidden">
    <div
      id="progressBar"
      role="progressbar"
      aria-valuenow="0"
      aria-valuemin="0"
      aria-valuemax="100"
      aria-labelledby="tor-connect-heading"
      hidden="hidden"
    >
      <div id="progressSolid"></div>
      <div id="progressBackground"></div>
      <div id="progressBarBackground"></div>
+4 −1
Original line number Diff line number Diff line
@@ -645,10 +645,13 @@ class AboutTorConnect {
  }

  updateBootstrappingStatus(data) {
    let { progress } = data;
    progress = Math.max(0, Math.min(progress, 100));
    this.elements.progressMeter.style.setProperty(
      "--progress-percent",
      `${data.progress}%`
      `${progress}%`
    );
    this.elements.progressMeter.setAttribute("aria-valuenow", String(progress));
    if (this.shownStage === "Bootstrapping" && data.hasWarning) {
      // When bootstrapping starts, we hide the log button, but we re-show it if
      // we get a warning.