Bug 41907: Change TorConnect state after the process becomes ready only when we are in the initial state.
All threads resolved!
Compare changes
+ 12
− 0
@@ -874,6 +874,18 @@ const TorConnect = (() => {
tor-browser
- !fixups
to tor-browser
-specific commits, new features, security backportsbase-browser
- !fixups
to base-browser
-specific commits, new features to be shared with mullvad-browser
, and security backports
base-browser
and tor-browser
please clearly label in the change description which commits should be cherry-picked to base-browser
after merging/cc
all the relevant reviewers (since gitlab only allows 1 reviewer)I decided to investigate on a bug we've had for a long time.
The bootstrap is interrupted (especially on Windows, but I use a VM) without any explanation.
The issue is that TorConnect
might receive a notification when its state has already changed from the initial one.
In particular, if it goes from Bootstrapping
to Configuring
, it also makes the bootstrap stop (set DisableNetwork=1
).
My solution is to ignore this notification if we aren't in the initial state anymore.
A consideration to do is that the settings topic we're ignoring is notified when we've set the configuration from browser preferences to torrc
.
However, the settings from the previous session should already be in the torrc
, and any other change should have already been saved, and I don't think we need to cycle a disable network to apply them in any case.
The alternative is to rework the UX, but I don't think it's really needed in this case.
See also my comments on the related issue.
Since this bug is only a bit annoying, I think it's fine to keep it in alpha for a while, especially since we're not doing many of them, without backporting it.