Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to clear specific browsing data #798

Open
whimboo opened this issue Oct 18, 2024 · 0 comments
Open

Add method to clear specific browsing data #798

whimboo opened this issue Oct 18, 2024 · 0 comments
Labels
enhancement New feature or request module-browser Browser module needs-discussion Issues to be discussed by the working group

Comments

@whimboo
Copy link
Contributor

whimboo commented Oct 18, 2024

The WebExtensions API supports a method to clear specific types of browsing data:
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/browsingData

Currently supported types of browsing data include:

  • Browser cache
  • Cookies
  • Downloads
  • History
  • Local storage
  • Plugin data
  • Saved form data
  • Saved passwords

While some data, like cookies, can already be isolated using different user contexts (i.e., containers in Firefox), there is no direct way to clean up other data types without restarting the browser with a fresh profile.

Since browser restarts are time-consuming, it would be beneficial to provide a method such as browser.clearBrowsingData, which accepts flags for specific data types (as listed above), allowing more granular cleanup without requiring a full restart.

@whimboo whimboo added enhancement New feature or request needs-discussion Issues to be discussed by the working group module-browser Browser module labels Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module-browser Browser module needs-discussion Issues to be discussed by the working group
Projects
None yet
Development

No branches or pull requests

1 participant