VPN Card in NTP is not hidden when its group policy is disabled
Closed this issue · 4 comments
simonhong commented
Description
VPN Card in NTP should respect VPN group policy
Steps to reproduce
- Disable vpn group policy (ex,
defaults write com.brave.Browser.development BraveVPNDisabled -bool true
on macOS) - Launch Brave
Actual result
vpn card is shown
Expected result
vpn card is hidden
Reproduces how often
Easily reproduced
Brave version (brave://version info)
1.75.41 Chromium: 131.0.6778.85 (Official Build) nightly (arm64)
Channel information
- release (stable)
- beta
- nightly
Reproducibility
- with Brave Shields disabled
- with Brave Rewards disabled
- in the latest version of Chrome
Miscellaneous information
cc @rebron @brave/qa-team
kjozwiak commented
The above requires 1.73.98
or higher for 1.73.x
verification 👍
GeetaSarvadnya commented
Verification PASSED on
Brave | 1.73.99 Chromium: 131.0.6778.108 (Official Build) (64-bit)
-- | --
Revision | 273b36438521dd91cbab7a047e6d90deabf59d56
OS | Windows 10 Version 22H2 (Build 19045.5131)
Please see additional steps on how to add/remove templates: #26502
- Installed .173.99
- launched Brave
- logged into VPN as a new user (example@mailinator)
- enabled and disabled VPN
- closed Brave
- launched
Local Group Policy Editor
, and added an entry forBrave
, perhttps://support.brave.com/hc/en-us/articles/360039248271-Group-Policy
followed steps from #26502 - launched
Registry Editor
with Admin rights, and addedBraveVPNDisabled
as aDWORD
value to1
viaComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\BraveSoftware\Brave
- Relaunched brave and open brave://policies and ensured that
BarveVPNDisabled
is set totrue
- Confirmed
Brave VPN
card widget is not shown on NTP - Confirmed that
VPN
icon is not shown on the toolbar - Close the browser
- launched
Registry Editor
with Admin rights, and addedBraveVPNDisabled
as aDWORD
value to0
viaComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\BraveSoftware\Brave
- Relaunched Brave and confirmed that Brave VPN card widget is shown on NTP
- Confirmed that VPN icon is shown on the toolbar as expected
- Open brave://policy/ and ensured that
BarveVPNDisabled
is set tofalse
step 4a | step 4b | step 6 | step 7 | step 8 | step 9 and 10 | step 12 | step 13 and 14 | step 15 |
---|---|---|---|---|---|---|---|---|
MadhaviSeelam commented
Verification PASSED
using
Brave | 1.73.99 Chromium: 131.0.6778.108 (Official Build) (arm64)
-- | --
Revision | 273b36438521dd91cbab7a047e6d90deabf59d56
OS | macOS Version 14.6.1 (Build 23G93)
- Installed 1.73.99
- launched Brave
- completed onboarding
- verified
Brave VPN
card widget is shown on NTP - clicked
Already purchased Brave VPN?
link in the VPN card widget - logged into VPN as an existing VPN user
- opened a new tab
- connected VPN via NTP VPN card widget
- clicked
Allow
onAdd VPN Configurations
popup - verified VPN successfully connected in the VPN card widget
- verified VPN successfully connected in the toolbar VPN icon
- disconnected VPN via VPN card widget
- quit Brave
- opened terminal and ran the command
defaults write com.brave.Browser.beta BraveVPNDisabled -bool true
- relaunch Brave
- confirmed Brave VPN card widget is hidden
- confirmed Brave VPN icon in the toolbar hidden as well
- opened brave://policy
- confirmed
BraveVPNDisabled
under Policy name and value showntrue
- quit Brave
- opened terminal and ran the command again
defaults write com.brave.Browser.beta BraveVPNDisabled -bool false
- launched Brave again
- confirmed
Brave VPN
card widget is shown on the NTP - connected to VPN via card widget in the NTP
- confirmed VPN is connected successfully both VPN button in the toolbar and VPN card widget
step 4 | step 6 | step 8 | step 9 | step 10-11 | step 12 | step 14 | step 16 - 17 | step 19 | step 21 | step 23 | step 24 |
---|---|---|---|---|---|---|---|---|---|---|---|
MadhaviSeelam commented
Verification PASSED
using
Brave | 1.73.99 Chromium: 131.0.6778.108 (Official Build) (64-bit)
-- | --
Revision | 273b36438521dd91cbab7a047e6d90deabf59d56
OS | Windows 11 Version 24H2 (Build 26100.2314)
- Installed 1.73.99
- launched Brave
- completed onboarding
- verified
Brave VPN
card widget shown in the NTP - clicked
Already purchased Brave VPN?
link - logged into VPN as an existing user
- connected to VPN via VPN card widget
- disconnected from VPN via VPN card widget
- download policy_templates from https://brave-browser-downloads.s3.brave.com/latest/policy_templates.zip
- Follow steps 3-12 on how to download latest templates from #26502 - closed Brave
- Unzip this policy_templates.zip and close the window
- Windows + R, type in gpedit.msc, hit enter to open Local Computer Policy Editor window
- Under Computer Configuration, right click Administrative Templates >> pick Add/Remove templates
- Select
brave
>> Add >> Downloads >> policy_templates >> windows >> en-US - open brave.adm >>closed
Add/Remove
Templates window - navigate to Classic Administrative Templates >> Brave >> Brave Software settings folder
- confirmed the actual policies are listed
- confirmed
Disable Brave VPN
setting is shown asNot configured
- edit the settings
Disabled Brave VPN
to Enabled - relaunched Brave
- confirmed Brave VPN card widget is not shown in the NTP
- confirmed Brave VPN button in the toolbar is not shown
- opened brave://policy
- confirmed
BraveVPNDisabled
under policy name and value showntrue
- closed Brave
- opened Local Computer Policy Editor window and edit the settings to
Disabled
forDisabled Brave VPN
settings - relaunched Brave
- confirmed
Brave VPN
card widget is shown in disconnected state as expected. - confirmed VPN icon is shown in the toolbar as expected
- confirmed able to connect and disconnect the VPN
step 4 | step 6 | step 7 | step 8 | step 9 | step 11 | step 13 | step 16 | step 18 | step 19 | step 20 -21 | step 24 | step 26 | step 28 -29 | step 30 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|