ungoogled-software / ungoogled-chromium

Google Chromium, sans integration with Google
BSD 3-Clause "New" or "Revised" License
19.65k stars 803 forks source link

Clear data on exit whitelist #1745

Open Robbo5ooo opened 2 years ago

Robbo5ooo commented 2 years ago

Is your feature request related to a problem? Please describe. Although clearing data on exit is a good privacy practice, there are many websites that users can consider to be 'trustworthy'. For these websites it is often desired for user 'session' data to be preserved across discrete visits to trustworthy webites. A user defined whitelist of trustworthy sites, whose cookies and data are preserved upon exiting the browser would therefore be convenient for regularly accessed, trustworthy sites.

Describe the solution you'd like A UI element to be able to input/edit a user defined whitelist - A new section in the settings page would be more user friendly but probably more development work - A new flag entry in the flags page would be less friendly but probably easier to implement. A nice to have, would be a new menu item in context menus to add/remove current website to/from the whitelist. The whitelist would be input as a delimited list of URLs - for more control it would be nice to go beyond top level domain URLs and could include wildcards. Upon exiting the browser website data and cookies from URLs in the whitelist would be excluded from deletion when deleting data and cookies

Describe alternatives you've considered This behaviour can be achieved using existing plugins, such as Cookie Auto Delete, however for users who would prefer not to activate plugin functionality then there is no realistic alternative.

Additional context Add any other context or screenshots about the feature request here.

PF4Public commented 2 years ago

Have you tried Cookie AutoDelete. It does not entirely fulfil your need, but still might be a good solution to your problem.

Robbo5ooo commented 2 years ago

In the initial request, I've stated Cookie AutoDelete as a possible alternative solution. However, for those users that do not want to enable plugins this is not an option. I raised this issue as a feature request, rather than a question.

PF4Public commented 2 years ago

I raised this issue as a feature request, rather than a question.

This could be a non-trivial feature, which lowers the chances of it being implemented, hence there might be alternative solutions worth consider.

@Ahrotahn In your opinion, how complicated an implementation of this feature could be?

Robbo5ooo commented 2 years ago

I understand.

I currently use CAD for this functionality, but I wish to remove any reliance on plugins, due to the potential increase in security and privacy issues that 3rd party plugins bring. I realise CAD is a widely recognised as a trustworthy plugin, but it would be nice to achieve a zero plugin ideal. I'm guess other users that choose the most privacy focused browsers would also like to reduce any need for plugins.

Ahrotahn commented 2 years ago

Unfortunately this would probably make the patch too complicated and probably won't be something we could add, but I'll look into it since I plan to see how difficult it would be to update the patch with a way to choose what data is cleared. I should be able to use an origin list box to make a list of allowed sites, so it may still be possible to do this simply.