Desktop: Run CEF in incognito mode and delete root cache path on exit (#3137)

* Try

* Run cef in non persistence mode
This commit is contained in:
Timon
2025-09-13 22:19:45 +00:00
committed by GitHub
parent a1df16bc9e
commit da330b6dd0
9 changed files with 61 additions and 54 deletions
@@ -10,6 +10,7 @@ use super::CefContext;
pub(super) struct SingleThreadedCefContext {
pub(super) browser: Browser,
pub(super) input_state: InputState,
pub(super) instance_dir: std::path::PathBuf,
}
impl CefContext for SingleThreadedCefContext {
@@ -33,6 +34,7 @@ impl CefContext for SingleThreadedCefContext {
impl Drop for SingleThreadedCefContext {
fn drop(&mut self) {
cef::shutdown();
std::fs::remove_dir_all(&self.instance_dir).expect("Failed to remove CEF cache directory");
}
}