MicrosoftEdge / MicrosoftEdge/WebView2Feedback

[Problem/Bug]: ClearBrowsingDataAsync doesn't clear service worker logs

Open
#4,561 2 comments 1 reaction 3 assignees View on GitHub

@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
  1. Clone, build and run the WebView2WpfBrowser sample app
  2. Visit https://privacy-test-pages.site/privacy-protections/storage-blocking/?store#947 to store some data in a service worker
  3. Use the "Scenario" -> "Clear Browsing Data" -> "All Profile" (or any/all the other options) to clear browsing data
  4. Use SysInternals Strings to scan the content of bin\[Debug Experimental APIs|Debug Stable APIs]\netcoreapp3.0\WebView2WpfBrowser.exe.WebView2\EBWebView\Default\Service Worker\Database for strings (e.g. strings64.exe -nobanner "bin\Debug Stable APIs\netcoreapp3.0\WebView2WpfBrowser.exe.WebView2\EBWebView\Default\Service Worker\Database\*.*")
    • The privacy-test-pages.site site will appear several times in the output; e.g. 7INITDATA_UNIQUE_ORIGIN:https://privacy-test-pages.site/
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

AB#51682189

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.