brave-browser: Devices duplicated after adding them to the Sync chain
Description
Seeing users report that their devices are being duplicated on the Sync chain after being added. This is present across all platforms (Desktop, iOS and Android). Once a device is added to the chain, duplicate entries for that device appear in Settings --> Managed Synced devices:
Further, as illustrated above, they seem to continue duplicating over time. One user encountering this also included some additional details:
Cannot test it now. But when I noticed the issue a few days ago, I had a lot of copies from my Windows Brave too… So it looks like an issue with the Desktop Version, that keeps creating new devices without noticing them. Until now, I did not see any mobile devices duplicating.
If you delete the duplicates on iPhone or iPad that do not share the same device id as the is shown in the MacOS Brave (but keep the one, that is shown in MacOS Brave), the sync stops working completely. Seems like the Desktop browsers are not only creating new devices that are invisible to themself, but they are also syncing new bookmarks using the new device ids.
This behavior occurs consistently, even if the Sync chain is completely deleted and start fresh.
Steps to reproduce
- Start a Sync chain
- Add other devices to it
- Observe devices suplicating
Actual result
Duplicate devices appear on Sync chain
Expected result
Device should only appear once in list after added to the chain
Reproduces how often
Easily reproduced
Brave version (brave://version info)
v1.68.128
Channel information
- release (stable)
- beta
- nightly
Reproducibility
- with Brave Shields disabled
- with Brave Rewards disabled
- in the latest version of Chrome
Miscellaneous information
User thread: https://community.brave.com/t/device-is-listed-as-multiple-different-devices/557152/10
Additionally, I can see this occur on my end as well — although they do not continue to duplicate for me, I do see the same device added multiple times, despite only ever having been Synced once:
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 8
- Comments: 37 (9 by maintainers)
Links to this issue
Commits related to this issue
- Fixed erasing `Sync Client ID` when cleaning cookies. Fixes brave/brave-browser#40130 — committed to brave/brave-core by AlexeyBarabash 2 years ago
- Fixed erasing `Sync Client ID` when cleaning cookies. Fixes brave/brave-browser#40130 — committed to brave/brave-core by AlexeyBarabash 2 years ago
- Fixed erasing `Sync Client ID` when cleaning cookies. (#25147) * Fixed erasing `Sync Client ID` when cleaning cookies. Fixes brave/brave-browser#40130 — committed to jagadeshjai/brave-core by AlexeyBarabash 2 years ago
Thanks @codetist !!!
With the step you provided of enabling
Preference and security=>Delete browsing data=>On exit=>Cookies and other site dataI was able to reproduce the issue immediately, even on Linux.
Investigating and preparing a fix.
@H2SO4JB
yes, this means the bug was found, work on fix is in progress.
some time is required to complete PR, get the review, get the QA approval and uplift to Stable channel, so I am expectinhg it will be ready the next week.
Good evening, As a test, I synchronized two devices on the same channel. Both are running Brave Version 1.69.162 Chromium: 128.0.6613.120 (Official Build) (64 bits). The first device is running Linux Xubuntu 22.04. The second device runs Linux Xubuntu 24.04. I use them both every day, and only the one running Xubuntu 22.04 is duplicated. The settings are the same and the cookies are deleted every time I close the browsers. My test lasted several days… Note: given the edit in the previous post, I didn’t do the test of toggling “On/Off” the deletion of cookies when closing the browsers.
EDIT: With Brave updated to Version 1.69.168, my two Xubuntu devices (22.04 and 24.04) continue to duplicate each other. The problem therefore seems random and has still not been resolved. Have the Brave developers been warned?
As you mentioned profiles… I deleted my profile, the problem was gone. I just set up everything as usual, problem re-appeared. But finally found what seems to be the root cause: The device id stays stable, which means no duplicates, as long as you do not enable “clear cookies and website data” on browser exit. As soon as this option is enabled, the browser creates a new device id for itself after each restart. It stops immediately after disabling this option.
I don’t know how to switch the browser to English, but that’s the setting in German interface:
sorry, @thag0205 I wasn’t able to complete it last week, just created uplift PRs today into beta and stable versions. Hopefully it will be available with the next hotfix.
Here is a code responsible for leaving the sync chain: https://source.chromium.org/chromium/chromium/src/+/main:chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc;l=1547;bpv=0
Related Chromium change: https://source.chromium.org/chromium/chromium/src/+/d1756d22e544a554af3594fa71c839d2c472b2e1
Upstream’s logic is - when we delete cookies, we must log out from the websites and when we logout from the Google account, we also must logout from browser Sync. For sure this is not applicable for Brave and I am fixing it.