reputationCheckingRequired property
reputationCheckingRequired is used to control whether SmartScreen enabled or not.
SmartScreen helps webviews identify reported phishing and malware websites and also helps users make informed decisions about downloads.
SmartScreen is enabled or disabled for all CoreWebView2s using the same user data folder.
If reputationCheckingRequired is true for any CoreWebView2 using the same user data folder, then SmartScreen is enabled.
If reputationCheckingRequired is false for all CoreWebView2 using the same user data folder, then SmartScreen is disabled.
When it is changed, the change will be applied to all WebViews using the same user data folder on the next navigation or download.
If the newly created CoreWebview2 does not set SmartScreen to false,
when navigating(Such as Navigate(), LoadDataUrl(), ExecuteScript(), etc.), the default value will be applied to all CoreWebview2 using the same user data folder.
SmartScreen of WebView2 apps can be controlled by Windows system setting "SmartScreen for Microsoft Edge", specially,
for WebView2 in Windows Store apps, SmartScreen is controlled by another Windows system setting "SmartScreen for Microsoft Store apps".
When the Windows setting is enabled, the SmartScreen operates under the control of the reputationCheckingRequired.
When the Windows setting is disabled, the SmartScreen will be disabled regardless of the reputationCheckingRequired value set in WebView2 apps.
In other words, under this circumstance the value of reputationCheckingRequired will be saved but overridden by system setting.
Upon re-enabling the Windows setting, the CoreWebview2 will reference the reputationCheckingRequired to determine the SmartScreen status.
The default value is true.
Officially Supported Platforms/Implementations:
- Windows WebView2 1.0.1722.45+ (Official API - ICoreWebView2Settings8.put_IsReputationCheckingRequired)
Implementation
bool? reputationCheckingRequired;