Closed BrianAndersonMozenda closed 1 month ago
We have found that some of these can be turned off in settings.
Which ones cannot be turned off in settings?
I am unable to find chrome://settings for the following:
I am able to find the settings for the following, however, I am unable to set them with settings in CEF
Several of these settings can be handled in CefPermissionHandler.OnShowPermissionPrompt
For the download bubble set the following preferences to false :
@salvadordf
Thank you.
Here are the some of the ways that we have found to accomplish the above tasks - However, especially for the download bubble, this doesn't fix the pulling focus from the browser issue.
Download completed
CfxValue downloadsValue = CfxValue.Create();
downloadsValue.SetBool(false);
bool success = CfxRequestContext.GetGlobalContext().SetPreference("download_bubble.partial_view_enabled", downloadsValue, out string error);
Download multiple files
CfxValue downloadMultiple = CfxValue.Create();
downloadMultiple.SetInt(1);
success = CfxRequestContext.GetGlobalContext().SetPreference("profile.default_content_setting_values.automatic_downloads", downloadMultiple, out error);
Know your location
CfxValue locationServicesValue = CfxValue.Create();
locationServicesValue.SetBool(false);
success = CfxRequestContext.GetGlobalContext().SetPreference("profile.content_settings.enable_quiet_permission_ui.geolocation", locationServicesValue, out error);
Describe the bug Using Chrome bootstrap + Chrome style there are a lot of popups/bubbles that pull focus from the browser and create annoyances in the UI. Here are a few that we have been unable to work around with command line parameters:
To Reproduce Download multiple files Steps to reproduce the behavior:
To Reproduce Download completed Steps to reproduce the behavior:
To Reproduce Know your location Steps to reproduce the behavior:
To Reproduce Link hover in bottom left corner Steps to reproduce the behavior:
Expected behavior Expecting to have the ability from command line parameters to be able to block these types of popups/bubbles.
Screenshots If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
OS: Edition Windows 10 Pro Version 22H2 Installed on 2020-07-01 OS build 19045.4651 Experience Windows Feature Experience Pack 1000.19060.1000.0
CEF Version: Tested with varies versions with 126 and 127
Additional context Does the problem reproduce with the cefclient or cefsimple sample application at the same version? Yes - The reproduce in the cefclient test app.
Does the problem reproduce with Google Chrome at the same version? We have found that some of these can be turned off in settings.
Add any other context about the problem here. These popups create a lot of annoyance and confusion because they pull focus from the browser and don't allow injected JavaScript cannot initiate the subsequent processes until the user manually handles these dialogs so that the browser can regain focus.