in swift-source/all/FxAClient/FxAccountStorage.swift [16:35]
func read() -> PersistedFirefoxAccount? {
// Firefox iOS v25.0 shipped with the default accessibility, which breaks Send Tab when the screen is locked.
// This method migrates the existing keychains to the correct accessibility.
keychainWrapper.ensureStringItemAccessibility(
KeyChainAccountStorage.accessibility,
forKey: KeyChainAccountStorage.keychainKey
)
if let json = keychainWrapper.string(
forKey: KeyChainAccountStorage.keychainKey,
withAccessibility: KeyChainAccountStorage.accessibility
) {
do {
return try PersistedFirefoxAccount.fromJSON(data: json)
} catch {
FxALog.error("FxAccount internal state de-serialization failed: \(error).")
return nil
}
}
return nil
}