How to revoke permission to open links in an app
Discussed in https://github.com/MicrosoftEdge/WebView2Feedback/discussions/4479
Originally posted by exaiwitmx April 9, 2024 If you have granted the permission to always open specific links in an app, how do you revoke this permission?
What I've already tried:
-
WebView2.CoreWebView2.Profile.GetNonDefaultPermissionSettingsAsync() => No effect.
-
WebView2.CoreWebView2.Profile.GetNonDefaultPermissionSettingsAsync() with all CoreWebView2BrowsingDataKinds enumeration values OR-ed. => No effect.
-
WebView2.CoreWebView2.Profile.GetNonDefaultPermissionSettingsAsync() => Returns nothing.
-
Delete User Data Folder recursively by means of System.IO.Directory.Delete. => Actually removes the permission. But I don't want to do that for several reasons - including the problem that part of the User Data Folder might be locked (e.g. by other instances of my application) and therefore cannot be deleted.
I use version 1.0.2420.47 of the Microsoft.Web.WebView2 nuget package: