Chromium Embedded Framework (CEF). A simple framework for embedding Chromium-based browsers in other applications.
Go to file
Nik Pavlov 295ea1f715 Enable V8 sandbox by default (fixes #3332)
When the V8 sandbox is enabled, ArrayBuffer backing stores must be
allocated inside the sandbox address space. This change introduces a new
CefV8Value::CreateArrayBufferWithCopy method that copies the memory
contents into the sandbox address space.

Enabling the V8 sandbox can have a performance impact, especially when
passing large ArrayBuffers from C++ code to the JS side. We have therefore
retained the old CefV8Value::CreateArrayBuffer method that references
external memory. However, this method can only be used if the V8 sandbox is
disabled at CEF/Chromium build time.

To disable the V8 sandbox add `v8_enable_sandbox=false` to
`GN_DEFINES` when building CEF/Chromium.
2024-08-05 16:00:58 +00:00
.github/ISSUE_TEMPLATE Update GitHub issue templates (see #3464) 2023-03-11 20:59:16 -05:00
bazel bazel: Fix resource paths as external repo (see #3757) 2024-08-02 16:51:11 -04:00
cmake cefclient: osr: Fix compile errors with binary distribution (see #2575) 2024-04-27 15:36:58 -04:00
include Enable V8 sandbox by default (fixes #3332) 2024-08-05 16:00:58 +00:00
libcef Enable V8 sandbox by default (fixes #3332) 2024-08-05 16:00:58 +00:00
libcef_dll Enable V8 sandbox by default (fixes #3332) 2024-08-05 16:00:58 +00:00
patch Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
tests Enable V8 sandbox by default (fixes #3332) 2024-08-05 16:00:58 +00:00
tools Enable V8 sandbox by default (fixes #3332) 2024-08-05 16:00:58 +00:00
.gitignore Add DISABLE_ALLOY_BOOTSTRAP to cef_config.h (see #3681, see #3685) 2024-05-01 14:34:32 -04:00
.style.cfg Update tooling to use yapf for Python file formatting (issue #2171) 2017-05-28 15:03:42 +02:00
.style.yapf Update tooling to use yapf for Python file formatting (issue #2171) 2017-05-28 15:03:42 +02:00
AUTHORS.txt Update AUTHORS.txt documentation 2020-05-08 12:35:04 -04:00
BUILD.gn Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
CHROMIUM_BUILD_COMPATIBILITY.txt Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
CHROMIUM_UPDATE.txt Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
CMakeLists.txt.in cmake: Skip docs generation if the Doxyfile is missing 2024-06-06 13:54:11 +00:00
DEPS Branch CEF3 files from /branches/cef3 to /trunk/cef3 (issue #564). 2012-04-03 01:34:16 +00:00
Doxyfile windows: Configure stack size for executables (fixes issue #3250) 2022-10-21 14:52:50 -04:00
LICENSE.txt Update copyright year 2020-01-06 11:59:05 +02:00
README.md Add new Go project to README.md 2023-09-18 19:48:27 +00:00
VERSION.in Update to Chromium version 71.0.3567.0 (#595360) 2018-10-04 12:17:26 +03:00
cef_create_projects.bat Use python3.bat in cef_create_projects.bat 2023-09-11 15:15:26 +00:00
cef_create_projects.sh mac/linux: Use python3 for .sh scripts 2022-04-08 11:38:12 -04:00
cef_paths.gypi Add CefTaskManager API 2024-07-18 11:34:41 -04:00
cef_paths2.gypi bazel: Add initial config for binary distribution (see #3757) 2024-07-28 18:19:47 +00:00

README.md

The Chromium Embedded Framework (CEF) is a simple framework for embedding Chromium-based browsers in other applications.

Quick Links

Introduction

CEF is a BSD-licensed open source project founded by Marshall Greenblatt in 2008 and based on the Google Chromium project. Unlike the Chromium project itself, which focuses mainly on Google Chrome application development, CEF focuses on facilitating embedded browser use cases in third-party applications. CEF insulates the user from the underlying Chromium and Blink code complexity by offering production-quality stable APIs, release branches tracking specific Chromium releases, and binary distributions. Most features in CEF have default implementations that provide rich functionality while requiring little or no integration work from the user. There are currently over 100 million installed instances of CEF around the world embedded in products from a wide range of companies and industries. A partial list of companies and products using CEF is available on the CEF Wikipedia page. Some use cases for CEF include:

  • Embedding an HTML5-compliant Web browser control in an existing native application.
  • Creating a light-weight native “shell” application that hosts a user interface developed primarily using Web technologies.
  • Rendering Web content “off-screen” in applications that have their own custom drawing frameworks.
  • Acting as a host for automated testing of existing Web properties and applications.

CEF supports a wide range of programming languages and operating systems and can be easily integrated into both new and existing applications. It was designed from the ground up with both performance and ease of use in mind. The base framework includes C and C++ programming interfaces exposed via native libraries that insulate the host application from Chromium and Blink implementation details. It provides close integration between the browser and the host application including support for custom plugins, protocols, JavaScript objects and JavaScript extensions. The host application can optionally control resource loading, navigation, context menus, printing and more, while taking advantage of the same performance and HTML5 technologies available in the Google Chrome Web browser.

Numerous individuals and organizations contribute time and resources to support CEF development, but more involvement from the community is always welcome. This includes support for both the core CEF project and external projects that integrate CEF with additional programming languages and frameworks (see the "External Projects" section below). If you are interested in donating time to help with CEF development please see the "Helping Out" section below. If you are interested in donating money to support general CEF development and infrastructure efforts please visit the CEF Donations page.

Getting Started

Users new to CEF development should start by reading the Tutorial Wiki page for an overview of CEF usage and then proceed to the GeneralUsage Wiki page for a more in-depth discussion or architectural and usage issues. Complete API documentation is available here. CEF support and related discussion is available on the CEF Forum.

Binary Distributions

Binary distributions, which include all files necessary to build a CEF-based application, are available on the Downloads page. Binary distributions are stand-alone and do not require the download of CEF or Chromium source code. Symbol files for debugging binary distributions of libcef can also be downloaded from the above links.

Source Distributions

The CEF project is an extension of the Chromium project. CEF maintains development and release branches that track Chromium branches. CEF source code can be downloaded, built and packaged manually or with automated tools. Visit the BranchesAndBuilding Wiki page for more information.

External Projects

The base CEF framework includes support for the C and C++ programming languages. Thanks to the hard work of external maintainers CEF can integrate with a number of other programming languages and frameworks. These external projects are not maintained by CEF so please contact the respective project maintainer if you have any questions or issues.

If you're the maintainer of a project not listed above and would like your project listed here please either post to the CEF Forum or contact Marshall directly.

Helping Out

CEF is still very much a work in progress. Some ways that you can help out:

- Vote for issues in the CEF issue tracker that are important to you. This helps with development prioritization.

- Report any bugs that you find or feature requests that are important to you. Make sure to first search for existing issues before creating new ones. Please use the CEF Forum and not the issue tracker for usage questions. Each CEF issue should:

  • Include the CEF revision or binary distribution version.
  • Include information about your OS and compiler version.
  • If the issue is a bug please provide detailed reproduction information.
  • If the issue is a feature please describe why the feature is beneficial.

- Write unit tests for new or existing functionality.

- Pull requests and patches are welcome. View open issues in the CEF issue tracker or search for TODO(cef) in the source code for ideas.

If you would like to contribute source code changes to CEF please follow the below guidelines:

- Create or find an appropriate issue for each distinct bug, feature or change.

- Submit a pull request or create a patch with your changes and attach it to the CEF issue. Changes should:

  • Be submitted against the current CEF master branch unless explicitly fixing a bug in a CEF release branch.
  • Follow the style of existing CEF source files. In general CEF uses the Chromium C++ style guide.
  • Include new or modified unit tests as appropriate to the functionality.
  • Not include unnecessary or unrelated changes.