You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to detect when a navigation happens in my app and clear the previous search term to prevent PHI/PII from being saved in there on the login screen for instance.
It seems that by default, the Find popup is closed but the contents are preserved. This is consistent with browsers, so this is fine as the default behavior.
But I was hoping that I could call Stop to fully stop/reset the Find session, but it doesn't help. The old search term persists.
Perhaps Stop is already called by WebView2 code on navigations and isn't intended to clear the old search term / reset to the default, but having some way of doing this would be useful. Perhaps a flag I can pass to the Stop function?
Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
134.0.3101.0 canary
SDK Version
1.0.3079.0 prerelease
Framework
Winforms
Operating System
Windows 11
OS Version
23H2 - 22631.4602
Repro steps
can post an example if you'd like
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered:
@pushkin- Thanks for reaching out. I see this is a default behavior in edge browser as well.Could you please confirm?
Also please share the screenshots of the issue...
@krbharadwaj ok yes, the navigation not clearing the search term happens in Edge too. I called that out in the issue report. My report is specifically asking for a way to clear the search term, which I was hoping we could do with the Stop API, but maybe we need a new API here.
I suppose I could paste some screenshot here later, but it would just be of the Find popup with a search term in it which doesn't seem very helpful. Is there something in particular you're looking for here, or that you need clarification on?
var findOptions = coreWebView2.Environment.CreateFindOptions();
findOptions.FindTerm = string.Empty;
coreWebView2.Find.Stop(); // optional call I'm throwing in as a test
coreWebView2.Find.StartAsync(findOptions);
What happened?
I need to detect when a navigation happens in my app and clear the previous search term to prevent PHI/PII from being saved in there on the login screen for instance.
It seems that by default, the Find popup is closed but the contents are preserved. This is consistent with browsers, so this is fine as the default behavior.
But I was hoping that I could call
Stop
to fully stop/reset the Find session, but it doesn't help. The old search term persists.Perhaps
Stop
is already called by WebView2 code on navigations and isn't intended to clear the old search term / reset to the default, but having some way of doing this would be useful. Perhaps a flag I can pass to theStop
function?Importance
Important. My app's user experience is significantly compromised.
Runtime Channel
Prerelease (Edge Canary/Dev/Beta)
Runtime Version
134.0.3101.0 canary
SDK Version
1.0.3079.0 prerelease
Framework
Winforms
Operating System
Windows 11
OS Version
23H2 - 22631.4602
Repro steps
can post an example if you'd like
Repros in Edge Browser
No, issue does not reproduce in the corresponding Edge version
Regression
No, this never worked
Last working version (if regression)
No response
The text was updated successfully, but these errors were encountered: