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

Global settings doesn't retain state after restart #16259

Closed
srirambv opened this issue Jun 7, 2021 · 6 comments · Fixed by brave/brave-core#9040
Closed

Global settings doesn't retain state after restart #16259

srirambv opened this issue Jun 7, 2021 · 6 comments · Fixed by brave/brave-core#9040
Assignees
Labels
bug feature/global-settings Settings at browser level independent of shields settings OS/Android Fixes related to Android browser functionality priority/P1 A very extremely bad problem. We might push a hotfix for it. QA Pass - Android ARM QA Pass - Android Tab QA/Yes release/blocking release-notes/exclude

Comments

@srirambv
Copy link
Contributor

srirambv commented Jun 7, 2021

Description

Global settings doesn't retain state after restart

Steps to reproduce

  1. Clean install 1.26.53 Beta build
  2. Set Block cross-site trackers to aggresive
  3. Set Fingerprint blocking to aggressive
  4. Set Cookies to block all
  5. Set clear data on exit
  6. Quit and relaunch the browser all global shields settings are reset
  7. Click on individual setting and click done, gets reset back to aggressive/block all on its own

Actual result

Android.Clear.data.on.exit.mp4

Expected result

Do not reset global settings after restart

Issue reproduces how often

Easy

Version/Channel Information:

  • Can you reproduce this issue with the current Play Store version? NA
  • Can you reproduce this issue with the current Play Store Beta version? Yes
  • Can you reproduce this issue with the current Play Store Nightly version? Yes

Device details

  • Install type (ARM, x86): ARM
  • Device type (Phone, Tablet, Phablet): Phone
  • Android version: 10

Brave version

1.26.53

Website problems only

  • Does the issue resolve itself when disabling Brave Shields? NA
  • Does the issue resolve itself when disabling Brave Rewards?NA
  • Is the issue reproducible on the latest version of Chrome? NA

Additional information

cc: @bridiver @alexsafe

@srirambv srirambv added bug release/blocking feature/global-settings Settings at browser level independent of shields settings priority/P1 A very extremely bad problem. We might push a hotfix for it. QA/Yes release-notes/exclude OS/Android Fixes related to Android browser functionality labels Jun 7, 2021
@srirambv srirambv added this to the 1.26.x - Beta milestone Jun 7, 2021
@Tonev
Copy link
Contributor

Tonev commented Jun 7, 2021

That's the result of clearing the browsing data for "Site and Shields Settings", which is part of the "Clear data on exit" feature.

#16250

@bridiver
Copy link
Contributor

bridiver commented Jun 7, 2021

so there are two separate issues here:

  1. Global settings are deleted with content settings (@srirambv is checking on our behavior vs upstream) Clearing "Site and Shields Settings" resets global Shields settings #15347
  2. "Clear data on exit" is incorrectly deleting content settings

The problem is that this issue doesn't correctly capture #2 because it's being conflated with #1. @srirambv this issue should be specific to site settings so the two of them don't get confused.

@bridiver
Copy link
Contributor

bridiver commented Jun 7, 2021

the original issue was correct #7487 with Clear cache, cookies, history, but somehow site settings was incorrectly included in that. Site settings should only be cleared when users select it from the clear data dialog.

@srirambv
Copy link
Contributor Author

Global settings are not deleted with content settings on Chrome. Setting Cookies to block (globally) and clearing all time data doesn't reset it back to Block 3rd-party cookies in Incognito (Default global setting). We however seem to do it so need to fix that

@kjozwiak
Copy link
Member

Closing as this was fixed in master with brave/brave-core#9040 and uplifted into 1.26.x via brave/brave-core#9049.

@srirambv
Copy link
Contributor Author

Verification passed on OnePlus 6T with Android 10 running 1.26.63 x64 build

  • Verified global settings changed are retained when data is set to clear on exit
Global.Shields.Settings.mp4

Verification passed on Samsung Tab A with Android 10 running 1.26.63 x64 build

  • Verified global settings changed are retained when data is set to clear on exit
Global.Shields.Settings.Tab.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug feature/global-settings Settings at browser level independent of shields settings OS/Android Fixes related to Android browser functionality priority/P1 A very extremely bad problem. We might push a hotfix for it. QA Pass - Android ARM QA Pass - Android Tab QA/Yes release/blocking release-notes/exclude
Projects
None yet
5 participants