Brave deletes passwords on exit

Description of the issue:

Every time I exit Brave the saved passwords are deleted. It doesn’t matter what I select in “Delete data on exit”. I can uncheck everything and the passwords are still deleted. There is no password setting there, but apparently there was such a setting in older versions of Brave.

I can’t reproduce it on a clean install, this only happens on my updated version of Brave.

How can this issue be reproduced?

  1. Install old version of Brave.

  2. Change some settings (??), probably have to check “delete passwords on exit”.

  3. Upgrade to latest version of Brave.

  4. Save a password, exit Brave.

Expected result:

Passwords are still there.

Brave Version( check About Brave):

1.92.141

Sorry I’m not sure I follow – you say that this is occurring on an “old version” of the browser? What specific version are you referring to and why are you using it?

No, why would you think that?

I wrote the exact version number at the end (the latest version). I also wrote “3. Upgrade to latest version of Brave.” in the steps.

The reason I mentioned an “old version” is because it seems to be one of the conditions for the bug (that’s just a guess, however).

I dug out an old version of Brave to test this. So here are the reproduction steps:

  1. Install Brave 1.88.138.
  2. In “Delete data on exit”, check “Passwords and other sign-in data”
  3. Update to the latest version of Brave (1.92.143).

The new version of Brave doesn’t have the feature to delete “Passwords and other sign-in data” in the UI, but it still deletes the passwords.

Let me know if there’s a hidden toggle somewhere that I can use to turn this off.

Great sleuthing – that every well could be the case. I’ve brought this up to our devs to review. In the meantime, we might be able to fix this for you by making some changes to your user data. If you’d like to try this, please perform the following steps (lots of text but the actual steps aren’t that complicated):

1. Find your profile data
Ensure that Brave is closed, then in Windows, press Win + R to open the run dialog, then enter the following path: %LOCALAPPDATA%\BraveSoftware\Brave-Browser\User Data. In the User data folder, find the Default directory.

Note: if you have more than one profile created in the browser, the directory you’re looking for may instead be called Profile 1, Profile 2, etc. If you’re unsure which one is the right one, let me know and I can help you figure that out.

2. Open the Preferences file
In the Default folder, you’ll find a Preferences file. This is the file we want to open and technically you can view it’s contents using any text editor, but I would highly recommend using an app made for viewing code so that it can be formatted and thus [much] easier to read. I would recommend VSCode as it’s pretty light weight, free and easy to use (you can delete the app after if you’d like) but feel free to use whatever editor you’d like.

Since we are editing files here, you may want to go ahead and make a safe copy of the Preferences file before opening it – just in case something goes wrong and you need to restore it’s original state. Then, open the Preferences file using the editor of your choice, then use the “find” option to search for a property called "clear_data"

Note: if you are using VSCode, you can right click in the editor once the file is open and select Format document from the context menu).

It should look like this:


3. Correct the Passwords value
The values listed here correspond to the check boxes on the Clear browsing data window (check: = true, unchecked = false). If your theory is correct, then the Passwords value here should be set to true. If it is, go ahead and change the value to false – it should look like this after:

Save the file.

Now launch the browser and try adding a login/password, save it in the browser, then close/relaunch it again and let me know if the passwords still get deleted.

That fixed it, thanks!

You’re very welcome. Glad that did the trick!