Whitelist pages from having data removed on exit

It is incomprehensible to me why this option does not exist yet, especially considering what Brave aims to represent. It’s so obvious that people use logins but want to delete all other junk. The core functionality already exists; would it really be that complicated to incorporate this? Is there even a plan for its future implementation? I’ve seen this topic on so many forums, yet I see no progress on it after years.

This wouldn’t work.

If you have googletagmager, google-analytics, facebook/adobe tracking etc (like many tracking sites). That data is sent out to a 3rd-party server, so “removing anything on exit” and whitelisting a site will just give more tracking servers full access. That tracking/fingerprint data left your computer, no matter how much you clear your local storage or cookies on exit.

You can actually do both. Block trackers and remove any data on exit. They’re completely separate features, they don’t depend on each other.

Ads would show also.

We should never “whitelist pages”. This would be bad for privacy. Not sure what you’re trying to achieve, give sites all the tracking and ads?

@averebazmadar I’d suggest you get better with your naming sense. What you’re requesting, “whitelist pages from having data removed on exit” has existed for as long as the browser has been in play. They just changed the method used for it.

Based on your description rather than title, it seems you’re going for something more niche. You want it to purge everything except your login? So keep your cookies used to maintain your login but isolate and delete all others? If so that’s a lot trickier than you may think, especially since Brave isn’t really trying to track as closely. All the browser tends to know is if it’s a 1st party cookie or 3rd party cookie. Unless you say otherwise, Brave is already blocking 3rd party cookies with Shields. 1st party cookies are needed to maintain your logins and choices for a website.

Also keep in mind your saved passwords are kept in a different area. So you can delete your cookies and/or cache but still not lose your saved logins. But I’m not sure what you are calling junk. Most “junk” is just your cache, which you can easily clear without it impacting anything else. Cached images and files is already a separate option.

Maybe I just overcomplicated it. Yes, I was thinking that it should remember the login for those 5-10 pages and delete everything else (cache, cookies, images) upon exit. The other data doesn’t matter to me (form fill, passwords, etc.).

On the “on-device data” page, “delete data on exit” is set along with exceptions, but when I check the saved data, the ones not included in the exceptions are still there, so I assume it didn’t delete anything. That’s my issue :confused:

So on chrome, if I set this, then it clears everything except the whitelisted sites. In brave, it does not. Or at leas for me.

On-device site data is not the best option. In Brave you should be using Forget me when I close this site instead as it gives better control. This is handled in Shields. You can set the default option based on your SettingsShields and then you would set the site specific exceptions by using the Shields image thing which controls how Shields interacts on a site by site basis. so while visiting a website, would click the Shields lion and change options, which it then does for that site.

  1. Second thing I want to ask is what data you’re speaking about that you say is still there?

I’m going to tag @Mattches to see if he can kind of check and what he knows.

I have had an issue open to add this for a long time now:

1 Like

@Mattches understood, but was tagging for something a bit different. They are saying that data isn’t being erased despite choosing to Delete data sites have saved to your device when you close all windows in the On-device site data menu at brave://settings/content/siteData

Supposedly works as intended on Chrome but not on Brave. At least that’s what more recent reply mentioned. But otherwise, yeah, I guess would resolve with your Github thing for the core of the issue if they’d prefer to use it.

@averebazmadar So the issue here is that no site data is being deleted when all windows are closed with this option selected? Or is it that the sites that you’ve added an exception for are also getting deleted?