Skip to content

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

Open

Description

@cztomczak

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

Activity

  1. 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)[/+] on Aug 28, 2018
  2. 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)[/+] on Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions