On linux webview don't remember previous state.
Describe the bug
On linux webview don't remember previous state. OSX works correctly.
Am I miss something?
Steps To Reproduce
- checkout wry
- change url to "https://google.com" in
examples/simple - cargo run --example simple
- accept/reject cookies
- close
- cargo run --example simple
- need to accept/reject cookies once again
Expected behavior Remember previous state
Platform and Versions (please complete the following information): OS: Pop!_OS 24.04 LTS Rustc: rustc 1.81.0 (eeb90cda1 2024-09-04)
Please try again after modifying the example to set a data dir via https://docs.rs/wry/latest/wry/struct.WebContext.html#method.new
on macos this is handled internally by the os, on linux and windows it has to be done manually (windows has a fallback, maybe linux doesn't save anything at all idk)
Just added
let mut context = WebContext::new(Some(PathBuf::from("/tmp/webcontext")));
WebViewBuilder::with_web_context(&mut context);
Nothing changed. Just salt files are created in tmp folder.