Skip to content

Add clear browsing data on exit - #1200

Open
aaravrav wants to merge 2 commits into
GrapheneOS:mainfrom
aaravrav:clear-browsing-data-on-exit
Open

Add clear browsing data on exit#1200
aaravrav wants to merge 2 commits into
GrapheneOS:mainfrom
aaravrav:clear-browsing-data-on-exit

Conversation

@aaravrav

@aaravrav aaravrav commented Jul 16, 2026

Copy link
Copy Markdown

Closes #966

Adds independent automatic cleanup options for browsing history, site data, cache, passwords, form data, and site settings.

The selected data is cleared when the last browser activity finishes and before browsing can begin the next time Vanadium is opened. The startup cleanup covers cases where Android terminated the previous process before exit cleanup could run. Only one cleanup runs at a time. Custom Tab page preloading remains blocked while any cleanup option is selected or a cleanup is still running, preventing preloaded pages from overlapping cleanup.

To be clear, pressing Home or switching apps does not count as closing Vanadium

aaravrav added 2 commits July 20, 2026 22:19
Add independent options for clearing history, site data, cache,
passwords, form data and site settings. Clear selected data when the
last browser activity finishes and before browsing can begin the next
time Vanadium opens.
@aaravrav
aaravrav force-pushed the clear-browsing-data-on-exit branch 2 times, most recently from 33fa111 to 79672e1 Compare July 20, 2026 16:58
@aaravrav

Copy link
Copy Markdown
Author

There is one unresolved edge case though: if android destroys the vanadium activity without finishing it and the process remains alive, the pending recreation can cause the next launch to be treated as the same session and skip startup cleanup.

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clear history when Vanadium closes

1 participant