Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Disable History sync when user switches to PB only #4009

Closed
srirambv opened this issue Aug 6, 2021 · 11 comments · Fixed by #4013
Closed

Disable History sync when user switches to PB only #4009

srirambv opened this issue Aug 6, 2021 · 11 comments · Fixed by #4013

Comments

@srirambv
Copy link
Contributor

srirambv commented Aug 6, 2021

Description:

Disable History sync when user switches to PB only

Steps to Reproduce

Scenario 1 - PB Only mode before sync is enabled

  1. Enable PB only mode
  2. Enable Sync and join a sync chain or add devices to the new one
  3. History from other devices show up on iOS
  4. Clear browser history from other device, history sync'd is also removed on iOS

Scenario 2 - PB only mode after sync is enabled

  1. Create a sync chain or join one
  2. Enable history sync
  3. Switch to PB only mode
  4. No further history is sync'd from iOS but history from other devices and normal tabs history still sync's

Actual result:
History sync is enabled on all the three scenarios which defeats the purpose of private tabs only mode

Expected result:
Disable History sync when a user switches to PB only mode

Reproduces how often: [Easily reproduced, Intermittent Issue]
Easy

Brave Version:
1.30(21.8.5.11)

Device details:
All

Website problems only:

  • did you check with Brave Shields down? NA
  • did you check in Safari/Firefox (WkWebView-based browsers)? NA

Additional Information

cc: @soner-yuksel @jumde

@diracdeltas
Copy link
Member

if a user without pb only opens a private tab, does history in that tab get synced? (it shouldn't)

@srirambv
Copy link
Contributor Author

srirambv commented Aug 9, 2021

@diracdeltas no it doesn't. Only normal tab history is sync'd. @soner-yuksel can we disable the history tab to show any data when user switches to Private tabs or PB only?

@soner-yuksel
Copy link
Contributor

soner-yuksel commented Aug 9, 2021

Our data is not sync'ed and it is not even added while user is on a private tab.

And I believe we should not make a change for Private Tabs. This is the same behaviour on desktop.
Only concern was PB Only mode and we dont have this mode in desktop or android so the decision about this mode was not to show any history item like and quick PR adds that behaviour.

@iccub
Copy link
Contributor

iccub commented Aug 9, 2021

@diracdeltas do you want us to open a formal sec/privacy review for this change once we agree on expected outcome?

@soner-yuksel
Copy link
Contributor

soner-yuksel commented Aug 9, 2021

@diracdeltas do you want us to open a formal sec/privacy review for this change once we agree on expected outcome?

@iccub this is the sec-review for iOS https://github.com/brave/security/issues/501. And this feature had 2 separate sec-reviews both for core https://github.com/brave/security/issues/457 and iOS separately.

Or do you mean a sec review for this particular change ?

@jumde what is your opinion here? I believe we discussed this part and how to implement it and and only sec/privacy concern left is https://github.com/brave/security/issues/501#issuecomment-893836863

@soner-yuksel
Copy link
Contributor

PR for this change is merged but re-opening it until having a final decision.

@soner-yuksel soner-yuksel reopened this Aug 9, 2021
@jumde
Copy link
Contributor

jumde commented Aug 9, 2021

Hiding the history in private browsing only mode makes sense to me.

I think in past we decided to use this issue: #3184 - to clean up the settings panel in PBO mode.

@soner-yuksel
Copy link
Contributor

Ok in this case I am closing this ticket. If there is any more concern related with this issue please creata new ticket or let me know.

@srirambv
Copy link
Contributor Author

This is still not fully fixed. I can see history from other devices show up on iOS device when history page is kept open

STR:

  1. Set browser to PB only mode
  2. Join Sync chain
  3. Enable history sync
  4. Visit pages on other device by typing in urls
  5. Open history page on iOS device
  6. Visit a new page on other device, all typed in URL's from other device gets sync'd
  7. Navigate away from history page, list is cleared
  8. Keep history page open and browser again on other device, history comes back

@srirambv
Copy link
Contributor Author

Marking as QA Blocked due to #4027

@srirambv
Copy link
Contributor Author

Verification passed on iPhone XR with iOS 13.5 running 1.30(21.8.12.8)

  • Verified steps from issue description
  • Verified history page shows message when history sync is enabled with PB only mode

Verification passed on iPhone 7+ with iOS 14.5.1 running 1.30(21.8.12.8)

  • Verified steps from issue description
  • Verified history page shows message when history sync is enabled with PB only mode

Verification passed on iPad Pro with iOS 14.6 running 1.30(21.8.12.8)

  • Verified steps from issue description
  • Verified history page shows message when history sync is enabled with PB only mode
iPhone XR iPhone 7+ iPad Pro

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.