Skip straight to "FinalError" if we do not get an expected TorConnectError
Merged
requested to merge henry/tor-browser:not-bootstrap-errors-tb43488 into tor-browser-128.8.0esr-14.5-1
tor-browser
- !fixups
to tor-browser
-specific commits, new features, security backportsbase-browser
and mullvad-browser
- !fixups
to base-browser
-specific commits, new features to be shared with mullvad-browser
, and security backports
base-browser
-specific commits which need to be cherry-picked to the base-browser
and mullvad-browser
branches here/cc
all the relevant reviewers (since Gitlab only allows 1 reviewer)We only progress through the connect assist stages if we get an expected error type. If we get anything else, including a Moat connection error, we skip straight to FinalError
.
For android, this means that if Moat is broken for that user then we would skip to FinalError
why they try and auto bootstrap.
The torbrowser.debug.censorship_level
levels work as expected.
If we simulate an empty response from Moat with
TorConnect.simulateBootstrapOptions.simulateMoatResponse = { bridgesList: [] };
or
TorConnect.simulateBootstrapOptions.simulateMoatResponse = { country: "fi", bridgesList: [] };
we move from ChooseRegion
to RegionNotFound
and ConfirmRegion
, respectively.
If we force Moat to fail, we move to FinalError
instead.
If we force the BootstrapAttempt
to throw, it will proceed directly from Start
to FinalError
.
TB 43488: Skip straight to "FinalError" if we do not get an expected TorConnectError.