Skip to content

The top navigation in about:torconnect isn't updated correctly

Going back to "Connect to Tor" using the top menu doesn't work as expected:

Screenshot_from_2023-06-07_09-03-31

Connect to Tor should be blue.

I think this happens only when the connection fails, because we also get this in the console:

Uncaught TypeError: state is null
    showConnectToTor chrome://browser/content/torconnect/aboutTorConnect.js:453
    transitionUIState chrome://browser/content/torconnect/aboutTorConnect.js:185
    initElements chrome://browser/content/torconnect/aboutTorConnect.js:685
2 aboutTorConnect.js:453:9
    showConnectToTor chrome://browser/content/torconnect/aboutTorConnect.js:453
    showConnectToTor self-hosted:1115
    transitionUIState chrome://browser/content/torconnect/aboutTorConnect.js:185
    initElements chrome://browser/content/torconnect/aboutTorConnect.js:685

And at line 453 we have if (state.HasEverFailed) {.

It can be tested with torbrowser.debug.censorship_level set to 3.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information