Skip to content
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

Expose Request Contexts and Chromium Preferences (lots of new settings that can be set during runtime) #244

Open
cztomczak opened this issue Jul 20, 2016 · 0 comments

Comments

@cztomczak
Copy link
Owner

cztomczak commented Jul 20, 2016

Lots of new settings can be set using CefRequestContext.SetPreference. Full list of preference names can be found in upstream Chromium pref_names.cc files:

Upstream issue that added the Preferences feature:
https://bitbucket.org/chromiumembedded/cef/issues/1709/allow-configuration-of-preferences-during

CefRequestContext related methods:

  • GetAllPreferences - all preferences for browser's request context
  • SetPreference
  • many more methods has/get/canset...

Other context settings via _cef_request_context_settings_t:

  • cache_path
  • persist_session_cookies
  • persist_user_preferences
  • ignore_certificate_errors

Provide common preferences examples in API docs.

Example preferences:

  • "proxy" => {"mode": "fixed_servers", "server": "127.0.0.1:8888"} # or "scheme://host:port"
  • "webkit.webprefs.plugins_enabled" => True

Maybe expose useful/common preferences via ApplicationSettings / BrowserSettings? See example preferences:

All CEF preferences can be seen by running http://tests/preferences.html url in cefclient sample application as seen in the screenshot below. To get a list of all preferences programmatically call CefRequestContext.GetAllPreferences method.

image

@cztomczak cztomczak changed the title More Chrome settings with CefRequestContext.SetPreference Expose Request Contexts and Chromium preferences (lots of new settings that can be set during runtime) Aug 28, 2018
@cztomczak cztomczak changed the title Expose Request Contexts and Chromium preferences (lots of new settings that can be set during runtime) Expose Request Contexts and Chromium Preferences (lots of new settings that can be set during runtime) Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant