MicrosoftEdge / MicrosoftEdge/WebView2Feedback

WebView2 not using SmartScreen even with IsReputationCheckingRequired = true in C#.

Open
#3,774 0 comments 0 reactions 1 assignee View on GitHub

@aluhrs13 is already working on this.

Since Sep 13, 2023.

bug
Dominant language
PowerShell
Stars
526
Forks
67
PR merge metrics
No merged PRs in 30d

Description

Description

Tested on numerous sites, the WebView2's internal SmartScreen fails to detect and prevent navigation to said pages. Do note it does flag it on Microsft Edge.
Version
SDK: 1.0.1938.49
Runtime: 116.0.1938.69
Framework: WPF
OS: Win11

Regression
Was this working before but has regressed? I don't know
If yes, what version did this last work on?

Repro Steps

Setting IsReputationCheckingRequired to true and going to a site that is flagged successfully by Microsoft Edge. Expected behavior: The WebView2's SmartScreen should flag it from WPF as well, at least according to the Docs. Actual behavior: It does not detect it and proceeds with the navigation to the unsafe site.

Screenshots
SmartScreen on Edge (working as expected)
EdgeSmartScreen
SmartScreen on WebView2 (not working as expected)
WV2SmartScreen

Additional context
As seen in the screenshots, the SmartScreen on Edge prevents the navigation to the site (which is a redirecting site), but on WebView2 it does not, as seen in the second screenshot, and it does get redirected from it. I censored the site name due to security concerns. If need be, I can share the site I tested on with a WebView2 developer.

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.