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

[Problem/Bug]: DevTools Storage.clearDataForOrigin doesn't clear cookies #4135

Closed
leonidukg opened this issue Nov 6, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@leonidukg
Copy link

What happened?

We have a simple code:

await WebView.CoreWebView2.CallDevToolsProtocolMethodAsync("Storage.clearDataForOrigin", "{\"origin\":\"https://google.com\",\"storageTypes\":\"all\"}");

It should clear the entire storage, but it clears everything but the cookies.

If we put an * instead of https://google.com, it magically starts working and clears everything. Except for all domains.

Question, why cookies are not cleared when specifying origin?

Importance

Important. My app's user experience is significantly compromised.

Runtime Channel

Stable release (WebView2 Runtime)

Runtime Version

No response

SDK Version

No response

Framework

WPF

Operating System

Windows 10

OS Version

No response

Repro steps

Just paste the code on the button and try to execute.

Regression

No, this never worked

Last working version (if regression)

No response

@leonidukg leonidukg added the bug Something isn't working label Nov 6, 2023
@leonidukg
Copy link
Author

All work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant