Closed Bug 2052599 Opened 2 months ago Closed 1 month ago

[IPProtection] Onboarding card flow is broken for already authenticated users

Categories

(Firefox for Android :: Privacy, defect)

All
Android
defect
Points:
3

Tracking

()

VERIFIED FIXED
154 Branch
Tracking Status
firefox152 --- unaffected
firefox153 --- verified
firefox154 --- verified

People

(Reporter: mavduevskiy, Assigned: mavduevskiy)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression, Whiteboard: [fxdroid])

Attachments

(3 files, 1 obsolete file)

link to STP

Steps to reproduce

  1. Log in into account
  2. Wait for the onboarding popup (in the video, I forced it to be always shown, for the ease of testing)
  3. Authorize vpn

Expected behavior

VPN turns on

Actual behavior

VPN shows an error and locks in "connecting" state until the next cold start

Device information

  • Firefox version:
  • Android device model:
  • Android OS version:

Any additional information?

Severity: -- → S2

Set release status flags based on info from the regressing bug 2050967

... in users.

Please enter the commit message for your changes. Lines starting

Assignee: nobody → mavduevskiy
Attachment #9604371 - Attachment description: WIP: Bug 2052599 - Fix vpn onboarding flow for signed → Bug 2052599 - Fix vpn onboarding flow for signed
Status: NEW → ASSIGNED
Attachment #9604371 - Attachment description: Bug 2052599 - Fix vpn onboarding flow for signed → Bug 2052599 - Part 1: Fix vpn onboarding flow
Attachment #9604371 - Attachment description: Bug 2052599 - Part 1: Fix vpn onboarding flow → Bug 2052599 - Fix vpn onboarding flow for signed
Blocks: 2052966

Comment on attachment 9604809 [details]
Bug 2052599 - Part 2: Add testing coverage

Revision D310680 was moved to bug 2052966. Setting attachment 9604809 [details] to obsolete.

Attachment #9604809 - Attachment is obsolete: true
Points: --- → 3
Whiteboard: [fxdroid]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 154 Branch
Attachment #9605274 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: The patch fixes vpn onboarding flow for already existing users. Without it, a logged in user going through "try vpn" flow will get stuck in "connecting" state until they they restart (cold start) the app.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing:
  • Risk associated with taking this patch: low
  • Explanation of risk level: The patch is scoped to the VPN feature, and consists in slight adjustments to the vpn state machine.
  • String changes made/needed?: no
  • Is Android affected?: yes
Attachment #9605274 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Hi,
We verified this bug on Firefox 153.0b11 and the latest Nightly build 154.0a1 (Build #2016172351). Following the steps previously provided by Mike, we are no longer able to reproduce the issue.
 
However, we noticed that the error is displayed when performing the following steps:

  1. Set the device locale to US.
  2. Clear the Google Play Store cache.
  3. Install the Beta/Nightly build.
  4. Sign in to Sync using a newly created account.
  5. Change the device date to 7 days in the future.
  6. Force close (swipe away) Firefox.
  7. Reopen Firefox and go through the onboarding flow.
    Based on our observations, the issue reproduces intermittently under these conditions.

Would you recommend reopening this issue, or should we file a new bug to track this intermittent behavior?

Thanks.

Flags: needinfo?(mavduevskiy)

hi,
thank you for verifying that the initial patch works!

I spent quite a bit of time debugging, and you found a separate issue - a race condition. When we move the device clock, we force the fxa tokens to expire, and that forces fxa to reauth (on a good connection, it takes ~4, 5 seconds to finalize and report ready). If by that time the user has initiated the vpn auth flow (onboarding or (!) through regular vpn settings screen), we fail to initialize vpn machinery properly, and we end up in broken state. I will create a separate bug for that.

Status: RESOLVED → REOPENED
Flags: needinfo?(mavduevskiy)
Resolution: FIXED → ---

opsy, the intention was to close it and work on the new issue separately.

the follow up
https://bugzilla.mozilla.org/show_bug.cgi?id=2054812

Status: REOPENED → RESOLVED
Closed: 2 months ago1 month ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: