Skip to content

Conversation

@GittyHarsha
Copy link
Contributor

@GittyHarsha GittyHarsha commented Feb 12, 2026

Proposed Update to Existing Experimental API

This change updates the experimental API
CoreWebView2Profile.EnhancedSecurityModeLevel → CoreWebView2Profile.EnhancedSecurityModeState
to better align with the terminology used in the Enhanced Security Mode (ESM) origin setting API.
Enum Renames

Off → Disabled
Strict → Enabled

Rationale

Since Enhanced Security Mode is now also configurable through the origin setting API, the existing property name (EnhancedSecurityModeLevel) and its enum values (On/Off) can lead to ambiguity.
Renaming the property to EnhancedSecurityModeState and the enum values to Enabled and Disabled makes terminology consistent across both APIs and clearly expresses that this is a simple state, not a "level".
This improves clarity, aligns with the origin-settings-based configuration model, and reduces confusion for developers using both APIs.

GittyHarsha and others added 5 commits February 10, 2026 22:31
Document the Enhanced Security Mode (ESM) feature for WebView2, including its background, description, examples, and API details.
@GittyHarsha GittyHarsha added the API Proposal Review WebView2 API Proposal for review. label Feb 12, 2026
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.

1 participant