This is an automated email from the git hooks/post-receive script.
richard pushed a commit to branch tor-browser-91.9.0esr-11.5-1 in repository tor-browser.
The following commit(s) were added to refs/heads/tor-browser-91.9.0esr-11.5-1 by this push: new 8598151d65529 fixup! squash! Bug 27476: Implement about:torconnect captive portal within Tor Browser 8598151d65529 is described below
commit 8598151d65529eed22714484c9d02d106790f28b Author: Pier Angelo Vendrame pierov@torproject.org AuthorDate: Fri May 13 12:43:15 2022 +0200
fixup! squash! Bug 27476: Implement about:torconnect captive portal within Tor Browser
Bug 40918: Hide breadcrumbs on the first bootstrap --- browser/components/torconnect/content/aboutTorConnect.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/browser/components/torconnect/content/aboutTorConnect.js b/browser/components/torconnect/content/aboutTorConnect.js index 8b5f7216e9ef8..28356045525a3 100644 --- a/browser/components/torconnect/content/aboutTorConnect.js +++ b/browser/components/torconnect/content/aboutTorConnect.js @@ -145,6 +145,7 @@ class AboutTorConnect { allowAutomaticLocation: true, selectedLocation: "automatic", bootstrapCause: UIStates.ConnectToTor, + bootstrapEverAttempted: false, };
locations = {}; @@ -499,7 +500,13 @@ class AboutTorConnect { this.setTitle(title, ""); this.showConfigureConnectionLink(description); this.setProgress("", showProgressbar, state.BootstrapProgress); - this.setBreadcrumbsStatus(...breadcrumbs); + if (this.uiState.bootstrapEverAttempted) { + this.setBreadcrumbsStatus(...breadcrumbs); + } else { + this.hideBreadcrumbs(); + this.uiState.bootstrapEverAttempted = true; + this.saveUIState(); + } this.hideButtons(); if (state.ShowViewLog) { this.show(this.elements.viewLogContainer);