Skip to content

Commit b7d0b7e

Browse files
authored
update
1 parent 9d6a76d commit b7d0b7e

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

specs/IsSmartScreenRequired.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[Edge SmartScreen](https://support.microsoft.com/en-us/microsoft-edge/how-can-smartscreen-help-protect-me-in-microsoft-edge-1c9a874a-6826-be5e-45b1-67fa445a74c8) helps end users identify reported phishing and malware websites, and also helps end users make informed decisions about downloads.
44

5-
Currently, developers can use `options->put_AdditionalBrowserArguments(L"--disable-features=msSmartScreenProtection")` to disable SmartScreen in the WebView2 application. It is essentially a startup parameter of the browser process and applies to all WebView2 instances associated with that WebView2Environment. It must be determined when the WebView2Environment is created, and it cannot be modified at runtime.
5+
Currently, developers can use `options->put_AdditionalBrowserArguments(L"--disable-features=msSmartScreenProtection")` to disable SmartScreen in the WebView2 application. It is a startup parameter of the browser process and applies to all WebView2 instances associated with that WebView2Environment. It must be determined when the WebView2Environment is created, and it cannot be modified at runtime.
66

77
To support more flexibility we introduce a new API.
88

@@ -15,7 +15,7 @@ In this document we describe the new setting.
1515
# Description
1616
You can use CoreWebView2Settings.IsSmartScreenRequired to control SmartScreen. SmartScreen is enabled or disabled per browser process, so all WebView2 applications sharing the same user data folder path also share SmartScreen being enabled or disabled.
1717
If CoreWebView2Setting.IsSmartScreenRequired is true for any CoreWebView2 in its associated CoreWebView2Environment, then SmartScreen is enabled. If CoreWebView2Setting.IsSmartScreenRequired is false for all CoreWebView2s in their CoreWebView2Environment, then SmartScreen is disabled.
18-
The default value for `IsSmartScreenRequired` is true if SmartScreen is enabled when the CoreWebView2 is created and false if SmartScreen is disabled when the CoreWebView2 is created. The value doesn't change if SmartScreen is enabled or disabled later.
18+
The default value for `IsSmartScreenRequired` is true. When a new WebView is created, the SmartScreen state under the same CoreWebView2Environment will be reset to true.
1919

2020
Changes to `IsSmartScreenRequired` take effect on the next navigation or download.
2121

@@ -60,18 +60,17 @@ See [API Details](#api-details) section below for API reference.
6060
```cpp
6161
[uuid(d667d3a7-c1b7-479f-8833-db7547df6687), object, pointer_default(unique)]
6262
interface ICoreWebView2Settings11 : ICoreWebView2Settings10 {
63-
/// SmartScreen helps end users identify reported phishing and malware websites
64-
/// and also helps you make informed decisions about downloads.
63+
/// SmartScreen helps webviews identify reported phishing and malware websites and
64+
/// also helps users make informed decisions about downloads.
6565
/// `IsSmartScreenRequired` is used to control whether SmartScreen enabled or not.
6666
/// SmartScreen is enabled or disabled for all CoreWebView2s in a CoreWebView2Environment.
6767
/// If CoreWebView2Setting.IsSmartScreenRequired is true for any CoreWebView2 associated to the same
6868
/// CoreWebView2Environment, then SmartScreen is enabled. If CoreWebView2Setting.IsSmartScreenRequired
6969
/// is false for all CoreWebView2s in the associated CoreWebView2Environment, then SmartScreen is disabled.
7070
/// When it is changed, the change will be applied to all WebViews using the
7171
/// same CoreWebView2Environment on the next navigation or download.
72-
/// The default value for `IsSmartScreenRequired` is true if SmartScreen is enabled when the CoreWebView2
73-
/// is created and false if SmartScreen is disabled when the CoreWebView2 is created. The value doesn't change
74-
/// if SmartScreen is enabled or disabled later.
72+
/// The default value for `IsSmartScreenRequired` is true. When a new WebView is created, the SmartScreen
73+
/// state under the same CoreWebView2Environment will be reset to true.
7574
[propget] HRESULT IsSmartScreenRequired([out, retval] BOOL* value);
7675

7776
/// Sets whether this webview2 instance needs SmartScreen protection for its content.

0 commit comments

Comments
 (0)