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

On linux webview don't remember previous state. #1417

Open
fazibear opened this issue Nov 12, 2024 · 2 comments
Open

On linux webview don't remember previous state. #1417

fazibear opened this issue Nov 12, 2024 · 2 comments

Comments

@fazibear
Copy link

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)

@FabianLars
Copy link
Member

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)

@fazibear
Copy link
Author

fazibear commented Nov 12, 2024

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.

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

No branches or pull requests

2 participants