Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking VPN button when logged in sometimes shows expired page #22882

Closed
bsclifton opened this issue May 17, 2022 · 1 comment · Fixed by brave/brave-core#13624
Closed

Clicking VPN button when logged in sometimes shows expired page #22882

bsclifton opened this issue May 17, 2022 · 1 comment · Fixed by brave/brave-core#13624

Comments

@bsclifton
Copy link
Member

Description

The VPN button (top right, next to hamburger menu) is fetching its status each time it's clicked. This takes a while to load and there is a chain of callbacks happening. I suspect there is a problem along the way

https://github.com/brave/brave-core/blob/a36b4979363733d552ee48ccdbf7f2c8e84c740c/components/brave_vpn/brave_vpn_service.cc#L866-L895

  1. Sets state to loading
  2. Calls CredentialSummary to see if there is a credential
  3. Response received; it get parsed and set to failed, expired, not purchased OR it can be valid
  4. If valid, PrepareCredentialsPresentation is called to get the actual credentials
  5. This credential is used when making calls to Guardian VPN

Related: flickering visible when you click
#21754

Steps to Reproduce

  1. Enable VPN (see test plan in Implement Brave VPN on Desktop #15804 for more information)
  2. Click VPN button (next to hamburger menu)
  3. If it shows the giant toggle, you're good. If it shows an "Expired" screen, that is the problem
  4. Repeat steps 2 and 3 until you see the "Expired" screen

Actual result:

vpn-issue

Expected result:

It should always show the giant toggle if your VPN is active

@stephendonner
Copy link

stephendonner commented Jul 13, 2022

Verified PASSED using

Brave 1.42.62 Chromium: 103.0.5060.114 (Official Build) beta (x86_64)
Revision a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS macOS Version 11.6.7 (Build 20G630)

Followed the original steps to reproduce (and added some atop).

Confirmed the panel-flashing is fixed, as filed. There are definitely still session-based issues, which manifest as "flashing panel" issues, now. See the Encountered issues section, below.

VPN connected VPN disconnected VPN, post-setup VPN, not-yet set up too many recovery attempts
VPN-connected-toggle VPN-disconnected-toggle VPN-just-after-setup VPN-not-set-up-toggle VPN-too-man-recovery-attempts

Encountered issues:


Verification PASSED on

Brave | 1.42.73 Chromium: 103.0.5060.134 (Official Build) beta (64-bit)
-- | --
Revision | 8ec6fce403b3feb0869b0732eda8bd95011d333c-refs/branch-heads/5060@{#1262}
OS | Windows 10 Version 21H2 (Build 19044.1826)

Confirmed the panel-flashing is fixed, as filed. There are definitely still session-based issues, which manifest as "flashing panel" issues, now. See the Encountered issues section, below.

VPN connected VPN disconnected VPN, post-setup VPN, not-yet set up
VPN connected VPN disconnected VPN post setup VPN not yet setup

@GeetaSarvadnya GeetaSarvadnya added QA/In-Progress Indicates that QA is currently in progress for that particular issue QA Pass-Win64 labels Jul 29, 2022
@LaurenWags LaurenWags removed the QA/In-Progress Indicates that QA is currently in progress for that particular issue label Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment