MicrosoftEdge / MicrosoftEdge/WebView2Feedback
[Problem/Bug]: ClearBrowsingDataAsync doesn't clear service worker logs
Open
@chetanpandey1266 is already working on this.
Since Mar 21, 2025.
feature request
tracked
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
What happened?
Further to #3341, using ClearBrowsingDataAsync leaves service worker log files intact which contain the plain text domains of visited sites.
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Stable release (WebView2 Runtime)
Runtime Version
124.0.2478.97
SDK Version
1.0.2478.35 + 1.0.2562-prerelease
Framework
WPF
Operating System
Windows 10, Windows 11
OS Version
22631.3593
Repro steps
- Clone, build and run the WebView2WpfBrowser sample app
- Visit
https://privacy-test-pages.site/privacy-protections/storage-blocking/?store#947to store some data in a service worker - Use the "Scenario" -> "Clear Browsing Data" -> "All Profile" (or any/all the other options) to clear browsing data
- Use SysInternals Strings to scan the content of
bin\[Debug Experimental APIs|Debug Stable APIs]\netcoreapp3.0\WebView2WpfBrowser.exe.WebView2\EBWebView\Default\Service Worker\Databasefor strings (e.g.strings64.exe -nobanner "bin\Debug Stable APIs\netcoreapp3.0\WebView2WpfBrowser.exe.WebView2\EBWebView\Default\Service Worker\Database\*.*")- The
privacy-test-pages.sitesite will appear several times in the output; e.g.7INITDATA_UNIQUE_ORIGIN:https://privacy-test-pages.site/
- The
Repros in Edge Browser
Yes, issue can be reproduced in the corresponding Edge version
Regression
Don't know
Last working version (if regression)
No response
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.