Skip to content

Conversation

ambikakunnath
Copy link
Member

This change includes the API definition for Sensitivity label change event and to configure allow list for the Web platform API that lets web page communicate the sensitivity label information to the web platform.

@ambikakunnath ambikakunnath added the API Proposal Review WebView2 API Proposal for review. label Sep 17, 2025

# Description

This API introduces a SensitivityLabelChanged event to the CoreWebView2 object,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to follow the link from the above explainer to https://learn.microsoft.com/en-us/information-protection/develop/concept-label-metadata but I am getting a 404.

Is there an doc that describes what these labels are for in some more detail?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following up with owner of the page to get this updated.


# Description

This API introduces a SensitivityLabelChanged event to the CoreWebView2 object,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix.

{
// ICoreWebView2Staging32 members
// ICoreWebView2_32 members
CoreWebView2SensitivityInfo SensitivityInfo { get; };
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we were just going to have these two on the CoreWebView2:

IVectorView SensitivityLabels;
event Windows.Foundation.TypedEventHAndler<CoreWebView2, IInspectable> SensitivityLabelsChanged;

Why do we have CoreWebView2SensitivityInfo if it only has one property?

Copy link
Member Author

@ambikakunnath ambikakunnath Sep 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has both SensitivityState and SensitivityLabels. Hence created a struct to encapsulate both.
We wanted the state of not applicable domains to be available to the host app, hence SensitivityState needs to be there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Proposal Review WebView2 API Proposal for review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants