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

Append --disable-sync swtich to disable sync temporarily #4565

Merged
merged 2 commits into from
Feb 8, 2020

Conversation

darkdh
Copy link
Member

@darkdh darkdh commented Feb 8, 2020

fix brave/brave-browser#8141

Submitter Checklist:

Test Plan:

  1. Enable sync with older version
  2. Relaunch sync with this fix
  3. Go to about://version, there should be a --disable-sync switch
  4. Check sync item in menu is inaccessible
  5. Go to brave://sync/, it will show This site can’t be reached

Reviewer Checklist:

  • New files have MPL-2.0 license header.
  • Request a security/privacy review as needed.
  • Adequate test coverage exists to prevent regressions
  • Verify test plan is specified in PR before merging to source

After-merge Checklist:

  • The associated issue milestone is set to the smallest version that the
    changes has landed on.
  • All relevant documentation has been updated.

Copy link
Contributor

@AlexeyBarabash AlexeyBarabash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@darkdh
Copy link
Member Author

darkdh commented Feb 8, 2020

@darkdh darkdh merged commit 75da258 into master Feb 8, 2020
@darkdh darkdh deleted the disable-sync-temp branch February 8, 2020 16:12
bbondy pushed a commit that referenced this pull request Feb 8, 2020
Append --disable-sync swtich to disable sync temporarily
@bbondy bbondy mentioned this pull request Feb 8, 2020
32 tasks
bbondy pushed a commit that referenced this pull request Feb 8, 2020
Append --disable-sync swtich to disable sync temporarily
bbondy pushed a commit that referenced this pull request Feb 8, 2020
Append --disable-sync swtich to disable sync temporarily
.
bbondy pushed a commit that referenced this pull request Feb 8, 2020
Append --disable-sync swtich to disable sync temporarily
bbondy pushed a commit that referenced this pull request Feb 8, 2020
Append --disable-sync swtich to disable sync temporarily
bbondy pushed a commit that referenced this pull request Feb 8, 2020
Append --disable-sync swtich to disable sync temporarily
.
@kjozwiak
Copy link
Member

Thanks to @srirambv (@GeetaSarvadnya helped as well) for creating the following cases that QA also went through to ensure that disabling sync didn't cause any issues:

Sync enabled on previous version

  • Enable sync on 1.2.42 and add a desktop to the sync chain
  • Have bookmarks imported on device B to have them sync'd on device A
  • Add a bookmark on device A
  • Manually add the same bookmark on device A to make it duplicate
  • Quit browser on device B while sync is in progress
  • Upgrade device A to 1.3.115
  • Ensure sync is diabled and not shown in hamburger menu and no bookmarks that are sync'd are lost
  • Visiting brave://sync shows invalid page error
  • Ensure no sync is happening on device B and none of the bookmarks from device A are sent

Sync not enabled on previous version

  • Install 1.2.43
  • Ensure Sync option is shown in hamburger menu
  • Visit brave://sync, ensure sync start page is shown
  • Upgrade to 1.3.115
  • Ensure no sync option in hamburger menu
  • Visit brave://sync, shows invalid page error

Clean install

  • Clean install 1.3.115
  • Ensure no sync option in hambuger menu
  • Visit brave://sync, shows invalid page error

Crash profile

  • Install 1.2.43 and enable sync
  • Replace the crash bookmarks in profile
  • Upgrade to 1.3.113
  • Ensure browser goes into crash mode
  • Upgrade to 1.3.115
  • Ensure browser doesn't crash after launch
  • Ensure sync is disabled in hamburger menu and no bookmarks are lost

Component Extension

  • Install 1.2.43 and enable sync
  • Check Brave Sync component is listed in brave://extensions
  • Upgrade to 1.3.115
  • Check Brave sync component is not listed in brave://extensions

Sync disable in all tabs

  • open brave://sync or click on sync in hamburger menu in NT, sync should be disabled
  • open brave://sync or click on sync in hamburger menu in PT, sync should be disabled
  • open brave://sync or click on sync in hamburger menu in TOR tab, sync should be disabled
  • check console logs

Multiple profile

  • Open multiple profiles from Create a new profile and make sure sync is disabled in all created profile

Check process in task manager

  • In each case Extension: Brave Sync process should not be listed in the task manger

@AlexeyBarabash AlexeyBarabash mentioned this pull request Feb 11, 2020
32 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Temporarily disable sync to diagnose crashes
3 participants