-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No way to disable SmartScreen #834
Comments
Thanks for opening the issue @jschroedl . We should be doing a better job at documenting this. You can pass in the |
Thanks @liminzhu. Unfortunately this does not have any effect. Using this test page: https://demo.smartscreen.msft.net/ all actions on the page still trigger SmartScreen. So it is not disabled.
I also tried the initialization inline after InitializeComponent instead of in the Loaded call. No difference. |
Thanks for the report @jschroedl - I've added a bug on our backlog to look into the failed disablement. |
@jschroedl I've been able to get the switch to work for WPF. Do you have a wv2:WebView2 xaml element? If you do, can you check to make sure the Source property is not getting set there and make sure you're not setting WebView2.Source before the EnsureCoreWebView2Async call. Setting the source will automatically create an environment with default settings that can't be changed later. |
Thank you @jamesoli and sorry for the delay in responding. I do have a wv2:WebView2 object in my XAML and, yes, it does set Source. Removing that seems to address the problem! Thank you for your psychic diagnosis! |
Could anyone confirm if this command-line argument still works? Seems to have no effect here (I'm still seeing SmartScreen requests). |
Yes this should still be working. I just tried the arg you used and navigated to a test smartscreen site to see the site getting blocked or not: Can you verify that |
FYI - the proper way to disable SmartScreen now is to set |
Description
The agreement shown when downloading and running the Evergreen Standalone Installer includes this statement:
I need to know how to disable SmartScreen within our usage of WebView2. I am using the WPF wrapper.
Reading the referenced page, I see that SmartScreen could be disabled within the Edge Browser by using edge://settings/privacy but that does not apply to the WebView2 control as they are separate.
We need example code illustrating how to disable SmartScreen.
Version
SDK: 1.0.664.37
Framework: All
OS: Win10
Repro Steps
Attempt to disable SmartScreen.
Context
I asked this in question #707 but received no authoritative response so I feel it should be tracked as a bug.
Bug: AB#31694866
Setting: AB#29007172
The text was updated successfully, but these errors were encountered: