commit d3b4824cd61cb05b3f2e712a4d80fab27b8b9ec2 Author: Richard Pospesel richard@torproject.org Date: Thu Jun 24 18:08:26 2021 +0200
fixup! Bug 27476: Implement about:torconnect captive portal within Tor Browser --- browser/components/torconnect/content/aboutTorConnect.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/browser/components/torconnect/content/aboutTorConnect.js b/browser/components/torconnect/content/aboutTorConnect.js index 5fb5b2924b94..02ea82433a37 100644 --- a/browser/components/torconnect/content/aboutTorConnect.js +++ b/browser/components/torconnect/content/aboutTorConnect.js @@ -100,6 +100,7 @@ class AboutTorConnect { this.elemProgressDesc.textContent = this.torStrings.settings.quickstartDescription; this.showElem(this.elemConnectButton); + this.elemConnectButton.focus(); this.showElem(this.elemAdvancedButton); this.hideElem(this.elemCopyLogLink); this.hideElem(this.elemCancelButton); @@ -114,6 +115,7 @@ class AboutTorConnect { this.hideElem(this.elemAdvancedButton); this.hideElem(this.elemCopyLogLink); this.showElem(this.elemCancelButton); + this.elemCancelButton.focus(); this.showElem(this.elemProgressContent); this.showElem(this.elemProgressMeter); this.elemTitle.classList.remove("error"); @@ -125,6 +127,7 @@ class AboutTorConnect { this.showElem(this.elemConnectButton); this.hideElem(this.elemCancelButton); this.showElem(this.elemAdvancedButton); + this.elemAdvancedButton.focus(); this.showElem(this.elemProgressContent); this.hideElem(this.elemProgressMeter); this.elemTitle.classList.add("error"); @@ -278,7 +281,6 @@ class AboutTorConnect { this.elemConnectButton.addEventListener("click", () => { this.connect(); }); - this.elemConnectButton.focus();
this.elemCancelButton.textContent = this.torStrings.torConnect.cancel; this.elemCancelButton.addEventListener("click", () => {
tbb-commits@lists.torproject.org