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
Copy file name to clipboardExpand all lines: specs/SensitivityLabel.md
+71-23Lines changed: 71 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,6 @@ Sensitivity label support for Webview2
4
4
# Background
5
5
Web pages may contain content with sensitive information. Such information can be identified using data loss protection (DLP) methods. The purpose of this API is to provide sensitivity label information, communicated by web pages through the [PageInteractionRestrictionManager](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PageInteractionRestrictionManager/explainer.md), to the host application. This enables the host application to be informed of the presence of sensitive content.
6
6
7
-
## Note about .NET/WinRT projection
8
-
The work to project this API to .NET and WinRT are yet to be completed.
9
-
10
7
# Description
11
8
12
9
This API introduces a SensitivityLabelChanged event to the CoreWebView2 object, enabling applications to monitor changes in sensitivity labels within hosted content. This functionality is restricted to domains explicitly included in an allow list configured by the application. The allow list can be set at the profile level, thereby enabling the Page Interaction Restriction Manager for content within specified domains. By default, the allow list is empty, preventing hosted content from transmitting sensitivity label information.
@@ -23,8 +20,7 @@ The core features of this proposal are as follows:
23
20
24
21
Configure the PageInteractionRestrictionManager allow list to enable Sensitivity label functionality on trusted domains.
25
22
26
-
27
-
23
+
### C++ Sample
28
24
```cpp
29
25
voidConfigureAllowlist()
30
26
{
@@ -66,6 +62,7 @@ void ConfigureAllowlist()
66
62
}
67
63
}
68
64
```
65
+
### .NET/WinRT
69
66
```c#
70
67
// Configure allowlist for trusted company URLs
71
68
varallowlist=newList<string>
@@ -84,7 +81,7 @@ MessageBox.Show($"Allowlist configured with {allowlist.Count} URLs");
0 commit comments