Skip to content

Add SmartScreen as origin feature to TrustedOriginSetting spec - #5596

Open
HarshaNP (GittyHarsha) wants to merge 4 commits into
mainfrom
user/harshanp/origin-settings-add-smartscreen
Open

Add SmartScreen as origin feature to TrustedOriginSetting spec#5596
HarshaNP (GittyHarsha) wants to merge 4 commits into
mainfrom
user/harshanp/origin-settings-add-smartscreen

Conversation

@GittyHarsha

Copy link
Copy Markdown
Contributor
  • Add COREWEBVIEW2_ORIGIN_FEATURE_SMART_SCREEN enum with documentation describing per-origin SmartScreen reputation check configuration.
  • Update C++, .NET examples and MIDL3 enum to include SmartScreen.
Add COREWEBVIEW2_ORIGIN_FEATURE_SMART_SCREEN enum with documentation
describing per-origin SmartScreen reputation check configuration.
Update C++, .NET examples and MIDL3 enum to include SmartScreen.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the TrustedOriginSetting specification to allow per-origin configuration of SmartScreen reputation checks, updating the associated Win32/C++ and .NET/WinRT examples and the MIDL3 enum to include the new origin feature.

Changes:

  • Adds COREWEBVIEW2_ORIGIN_FEATURE_SMART_SCREEN / CoreWebView2OriginFeature.SmartScreen as a configurable origin feature.
  • Updates C++ and .NET examples to demonstrate configuring SmartScreen per-origin.
  • Expands spec documentation for SmartScreen behavior and updates SetOriginFeatures docs to mention it.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread specs/TrustedOriginSetting.md Outdated
Comment thread specs/TrustedOriginSetting.md Outdated
Comment thread specs/TrustedOriginSetting.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is good, but please also address the comment about adding a note about security when disabling - that we only want to do this for known and trusted sites.

- Replace hardcoded ICoreWebView2Settings8 reference with link to
  IsReputationCheckingRequired docs, describe as per-WebView setting
- Add security warning about disabling SmartScreen only for trusted origins
- Restore COREWEBVIEW2_ORIGIN_FEATURE_STATE doc comment

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GittyHarsha
HarshaNP (GittyHarsha) force-pushed the user/harshanp/origin-settings-add-smartscreen branch from a6c9e08 to 60c61d5 Compare May 19, 2026 23:36
…quired internals

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@GittyHarsha
HarshaNP (GittyHarsha) force-pushed the user/harshanp/origin-settings-add-smartscreen branch from 0ab4c9e to cc3a119 Compare May 20, 2026 00:06
Comment thread specs/TrustedOriginSetting.md Outdated
Comment thread specs/TrustedOriginSetting.md Outdated
Address PR review comments from oldnewthing and david-risney:
- Rename SMART_SCREEN to REPUTATION_CHECKING throughout the spec
  to avoid marketing names and align with existing
  IsReputationCheckingRequired API terminology.
- Add trailing comma in C++ example array for easier future updates.
- Fix default state docs: unconfigured origins follow
  IsReputationCheckingRequired (not always Enabled).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants