Verified Commit 20a1855a authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

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

Bug 41816: Workaround to fix the top navigation

Using the top navigation does not always work as expected, because we
pass a null connection state, instead of the actual state.
We could start storing the state as a member, however further refactors
are planned (see #41710), so also directly asking the parent
for the current state works as a quick&dirty workaround.
parent 52881162
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -449,7 +449,7 @@ class AboutTorConnect {
    if (state?.StateChanged) {
      this.elements.connectButton.focus();
    }
    if (state.HasEverFailed) {
    if (state?.HasEverFailed) {
      this.setBreadcrumbsStatus(
        BreadcrumbStatus.Active,
        BreadcrumbStatus.Default,