From 57d65669779fe1c19129f4a22e1e67164b5b1414 Mon Sep 17 00:00:00 2001 From: Mark Hammond Date: Thu, 13 Aug 2026 15:06:25 +1000 Subject: [PATCH] Bug 2060539 - errors checking the account state doesn't imply a bad state. --- components/fxa-client/src/state_machine/transitions.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/fxa-client/src/state_machine/transitions.rs b/components/fxa-client/src/state_machine/transitions.rs index ec227da2cf..d2e3f69f1a 100644 --- a/components/fxa-client/src/state_machine/transitions.rs +++ b/components/fxa-client/src/state_machine/transitions.rs @@ -139,9 +139,10 @@ pub fn transition( Ok(S::Disconnected) } (S::Connected, E::CheckAuthorizationStatus) => { + // check_authorization_status() failing should leave us in the original state. let active = account .check_authorization_status() - .to_state_machine_err(|| S::AuthIssues)?; + .to_state_machine_err(|| S::Connected)?; Ok(if active { S::Connected } else { S::AuthIssues }) } (S::Connected, E::CallGetProfile) => {