dessant / clear-browsing-data

Browser extension for clearing browsing data, available for Chrome, Edge and Firefox
https://addons.mozilla.org/en-US/firefox/addon/clear-browsing-data/
GNU General Public License v3.0
185 stars 22 forks source link

Single Tab Clear #7

Closed aemonge closed 6 years ago

aemonge commented 6 years ago

Is it posible to only clean the current/active site ?

dessant commented 6 years ago

Hi, sorry for the late reply! It is not currently possible to clear browsing data for a single tab.

The browsing data API allows clearing only cookies and local storage for a specific domain, and only in Firefox: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/browsingData/RemovalOptions

Cookies could be cleared on Chrome with the cookies API: https://developers.chrome.com/extensions/cookies

The history could also be cleared with the history API for a specific URL: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/history/deleteUrl

This is rather incomplete, and could be dangerous to have it implemented in such a spotty way, because it would break expectations of what is deleted, and what is kept.

For now it seems this feature will have to be shelved, but I'll be happy to revisit this once browsers will have proper support for clearing browsing data for a tab.