3659 Commits
Author SHA1 Message Date
Marshall Greenblatt a875f407e3 docs: Fix CefAudioHandler behavior descriptions (fixes #3010) 2026-10-10 13:48:48 -04:00
Marshall Greenblatt aa619989d4 docs: Improve OnContextReleased example (fixes #3669) 2026-10-10 13:43:37 -04:00
Marshall Greenblatt 5728c5dff3 docs: Fix CefDragHandler::OnDragEnter description (fixes #1235) 2026-10-10 13:40:20 -04:00
Marshall Greenblatt 48b59bede5 docs: Add code signing & notarization (fixes #2744) 2026-10-10 13:32:15 -04:00
Marshall Greenblatt 8446999d61 docs: Add Security Updates section to README.md (fixes #3584) 2026-10-10 12:31:15 -04:00
Marshall Greenblatt 5c57234740 docs: Improve external-message-pump guidance (fixes #2968) 2026-10-10 12:23:18 -04:00
Marshall Greenblatt 38b31337cc osr: win: cefclient: Update D3D11 structure to match Metal/EGL
- Support OnPaint uploads and copy shared textures into owned storage
  before OnAcceleratedPaint returns.
- Redraw the last frame on resize/expose.
- Remove the legacy OpenGL renderer and Windows GL handler.
- Preserve cached images on allocation failure and validate bounds.
- Add OsrRendererD3D11Test unit tests, ported from the Metal/EGL tests.

Tested on Windows 11 x64:
- cefclient resize and select popups work in all eight combinations
  of software/shared textures, internal/external begin frames, and
  single/multi-threaded message loops.
- ceftests: 37 renderer tests pass on hardware/WARP; one allocation
  failure test skips after the driver accepts its oversized descriptor
2026-10-10 10:59:26 -04:00
Marshall Greenblatt e79440b9fa osr: linux: cefclient: Implement --external-begin-frame-enabled (see #3687)
The GTK OSR window enabled external BeginFrames but never called
CefBrowserHost::SendExternalBeginFrame, so nothing was painted. Add a
UI thread timer at the windowless frame rate, matching the Windows and
macOS implementations.
2026-10-10 10:59:26 -04:00
Marshall Greenblatt c7e1a9e5c6 osr: linux: cefclient: Add OnAcceleratedPaint support (fixes #3687)
- Add OsrRendererGl, a shared OpenGL 3.3 renderer with DMA-BUF import,
  and load EGL/GL at runtime with no new build dependencies.
- Render via GtkGLArea on Wayland and an EGL window surface on X11.
- Redraw the last frame on resize/expose, matching the Metal renderer.
- Exit at startup if OSR is enabled and EGL is unavailable.
- Add OsrRendererGlTest unit tests, ported from the Metal tests.

Tested on a Linux VM (VMware SVGA3D, Mesa 23.2, GNOME Wayland/Xwayland):
- cefclient OSR software and shared-texture (DMA-BUF) rendering on
  Wayland (GtkGLArea) and X11 (EGL window surface), including resize,
  select popups, cursors, --multi-threaded-message-loop and
  --transparent-painting-enabled. Shared texture runs use
  --ignore-gpu-blocklist (VMware is blocklisted).
- ceftests: new OsrRendererGlTest (12 tests, using GBM DMA-BUFs) and
  all existing OSRTest tests pass.
- Missing libEGL: cefclient exits at startup with an error and
  OsrRendererGlTest skips.
2026-10-10 10:59:26 -04:00
Marshall Greenblatt f922057255 linux: cefclient: Fix GTK windows with Wayland (see #3687)
- Fail at startup when --use-native is used with Wayland
  (unsupported, see #2804).
- Remove X11 runtime dependencies from the OSR path.
- Match the GDK backend to the Ozone platform.
- Keep GDK OpenGL enabled with OSR by presetting GDK_GL (see
  https://crrev.com/7c29ce9003d87).
- Share IsRunningOnWayland() between cefclient and ceftests and
  match Chromium detection logic.
2026-10-09 15:46:19 -04:00
Kristof Imeri c5b06184bd osr: linux: Prefer native-handle SharedImages (fixes #4237) (#4238)
Shared-texture OSR with OnAcceleratedPaint only needs exportable native
handles. Preferring kPreferMappableSharedImage forces Linux into 
SCANOUT_CPU_READ_WRITE / GBM_BO_USE_LINEAR, which breaks
GPU rendering on NVIDIA. Switch to kPreferSharedImageWithNativeHandle
so Chromium can allocate SCANOUT buffers and still export DMA-BUF /
DXGI / IOSurface handles.
2026-10-09 14:14:43 -04:00
Daniil 48004de24d osr: win: Fix character events dropped for low byte 0x08/0x1B (fixes #4282) (#4283)
ui::KeyboardCode became a uint8_t on Windows in Chromium 148. A
character event carries its character in CefKeyEvent::windows_key_code,
so the ui::KeyEvent built from it keeps only the low byte in its key
code, and the one-argument NativeWebKeyboardEvent constructor copies
that key code into the web event. For characters whose low byte is 0x08
or 0x1B (e.g. U+041B Л, U+0408 Ј, U+011B ě) the web event then carries
VK_BACK/VK_ESCAPE, and WebFrameWidgetImpl::HandleCharEvent drops it
because WebKeyboardEvent::IsCharacterKey() is false for those codes.

Use the two-argument constructor for KEYEVENT_CHAR, as
RenderWidgetHostViewAura::InsertChar does for windowed browsers, so that
windows_key_code carries the full character.
2026-10-09 13:43:21 -04:00
Marshall Greenblatt 2d4a38cec5 docs: Fix last refresh date 2026-10-07 16:45:25 -04:00
Marshall Greenblatt 945a17e6aa docs: Add 8078 branch as Beta 2026-10-07 16:35:58 -04:00
Marshall Greenblatt f29ae69bb2 osr: cefclient: win: Suppress opening mouse-up over select popups (see #4301)
Suppress the opening release when a popup overlaps the pointer, even
when cefclient has not repositioned it. Previously, that release could
select an option and immediately close the menu.
2026-10-07 15:49:09 -04:00
Marshall Greenblatt dff7cc2c12 osr: Preserve focus across page view changes (fixes #4301)
Report the widget's actual focus state and route focus requests through
CefBrowserHost::SetFocus so client callbacks can accept or cancel them.
This allows select popups to open after cross-site link navigation.

Add regression coverage for main-frame and cross-origin iframe popups
and client focus cancellation, with BFCache enabled and disabled.
2026-10-07 14:59:12 -04:00
Marshall Greenblatt 5e9eac7d7a mac: osr: Preserve internal select menus across navigation (see #4297)
Set should_disable_external_popups in web preferences instead of
configuring the renderer WebView directly. This prevents preference
updates from restoring native menus after history navigation.

Remove the obsolete renderer override and add regression coverage for
main-frame and cross-origin iframe select popups with BFCache enabled
and disabled, plus client cancellation of focus requests.
2026-10-07 14:34:41 -04:00
Marshall Greenblatt 6497b876b1 Fix srcdoc origin inheritance from opaque parents (fixes #4298)
Preserve existing opaque origins in the custom-scheme security policy
patch instead of deriving a new origin. This keeps srcdoc frames'
inherited origins consistent between the browser and renderer while
retaining distinct origins for sandboxed frames.

Add regression coverage for data URLs, document-written about:blank,
HTTPS, and nested data frames, including sandbox isolation. Disable
the sandboxed initial about:blank case pending resolution of
https://crbug.com/570981950.
2026-10-07 13:42:43 -04:00
Marshall Greenblatt 905382c149 mac: Update minimum deployment target to macOS 13
Chromium dropped macOS 12 support in M151.
2026-10-07 12:44:55 -04:00
Marshall Greenblatt 56b6e70504 Tag 15600 API version 2026-10-07 12:25:37 -04:00
Marshall Greenblatt 037712b1da bootstrap: Add early CommandLine init and fix --v mode crash
Initialize the process command-line singleton before sandbox setup,
logging, and installer dispatch, and reuse it for argument parsing.
Early initialization is required by content::InitializeSandboxInfo
starting in M156.

Scope an AtExitManager around client execution so verbose startup
metrics can register shutdown callbacks without overlapping
installer managers.
2026-10-07 12:25:37 -04:00
Marshall Greenblatt b4ce724e45 tools: Support >2GB downloads and check sha256 sidecars 2026-10-07 12:25:37 -04:00
Marshall Greenblatt 124316c82d linux: wayland: Fix shadow artifacts with multi-threaded-message-loop
With multi-threaded-message-loop there is no GTK-backed LinuxUi, so
Views windows use the fallback FrameViewLinux with client-drawn
shadows. DesktopWindowTreeHostLinux only updates the opaque region from
OnBoundsChanged(), which runs before the FrameView exists. The surface
keeps its initial full-size opaque region, shadow included, so the
compositor leaves trails behind the window when it moves.

Call UpdateFrameRegions() from OnWidgetInitDone() so that the opaque and
input regions are set once the FrameView exists.
2026-10-07 12:25:37 -04:00
Marshall Greenblatt bfb444b334 tests: Fix flaky OwnedWidgetShutdownTest.SyntheticOwnedWindow
The owned menu window could be created before the main window was
activated. When the main window became active later, the menu was
dismissed (e.g. Wayland popups), so owned_window_ was null by the
time CloseMainWindow ran. This happened reliably on repeat
iterations, where cached loads make OnLoadEnd fire sooner.

Forward CefWindowDelegate::OnWindowActivationChanged from
TestWindowDelegate to a new TestHandler::OnWindowActivationChanged
hook, and wait until the load has ended and the main window is
active before creating the owned window.
2026-10-07 12:25:37 -04:00
Marshall Greenblatt 3baba7c8db Fix reference to temporary value 2026-10-07 12:25:37 -04:00
Marshall Greenblatt a26ddfd279 Update to Chromium version 156.0.8078.0
win: dxil.dll is no longer distributed
mac: Xcode 27 (macOS 26.6+) is now required
2026-10-07 12:25:37 -04:00
Marshall Greenblatt b54122e580 ai: Add GPT update instructions 2026-10-03 22:20:42 -04:00
Marshall Greenblatt e75cc7117e tests: Remove preference assertions from unrelated tests (see #4276) 2026-10-03 22:20:42 -04:00
Marshall Greenblatt ff57d4eae1 Disable background Gaia ListAccounts by default (fixes #4276)
Skip ListAccounts when browser sign-in is disabled, default new
profiles to sign-in disabled, and disable the sign-in promo on the
avatar button by default. Embedders can still opt in via
OnRegisterCustomPreferences.
2026-09-29 15:17:04 -04:00
Marshall Greenblatt 6d9f51a7bc Fix custom preference registration timing (fixes #4281)
Register CEF profile preferences after Chromium keyed-service
preferences. Add GetDefaultPreference and SetDefaultPreference
to CefPreferenceRegistrar so applications can inspect, override,
and restore registered defaults.
2026-09-29 14:10:34 -04:00
Marshall Greenblatt cff256d48a ceftests: Speculative fix for flaky MediaAccessTest 2026-09-28 16:05:37 -04:00
Marshall Greenblatt e048aa005c chrome UI: Fix crash on new tab button (fixes #4285) 2026-09-28 15:28:50 -04:00
Marshall Greenblatt 3389588b28 ceftests: Ignore browserless Chrome UI WebUI requests (fixes #4290) 2026-09-28 15:16:36 -04:00
Marshall Greenblatt afe9f1b890 Fix component path provider registration (fixes #4291) 2026-09-28 14:53:31 -04:00
Marshall Greenblatt 31eb5ac020 docs: Promote 8037 branch to Stable 2026-09-24 15:03:11 -04:00
Marshall Greenblatt 30b4fc6c8d tests: Fix OSR paint test bounds query race
Ignore element bounds queries for paint-only OSR tests. These tests
can start from OnPaint before the asynchronous bounds query arrives,
causing a false started-state assertion failure.
2026-09-24 14:02:27 -04:00
Marshall Greenblatt 12add0082f distrib: Remove stub ANGLE binaries (see #3974)
Chromium changed desktop builds to link ANGLE statically in
https://crrev.com/f78f92beeb (M151). The remaining libEGL and
libGLESv2 binaries are stubs (no exports, never loaded by
Chromium) and should no longer be distributed.
2026-09-22 14:09:47 -04:00
Marshall Greenblatt 5df187ece7 docs: Add extended channel and clarify channel timing 2026-09-18 14:42:35 -04:00
Marshall Greenblatt 89af13ad79 tests: Investigate intermittent ceftests server crashes
Log the connection ID, method, and path when an HTTP request has no
peer address, before the generated handler wrapper asserts.

Inline the URLRequestTest favicon to suppress incidental network
requests that may race with browser teardown.
2026-09-16 17:10:10 -04:00
Marshall Greenblatt 5065488251 osr: Refresh view bounds when restoring from BFCache (fixes #3822)
Synchronize visual properties before showing an OSR view, even when
its surface ID remains valid. Cached views can miss resize
notifications while another view is active. Preserve software popup
initialization before the browser is attached.

Add a regression that confirms BFCache restoration and verifies
viewport and paint dimensions after resizing another page. Verified
failure before the fix and 30 passing executions across GPU and
software rendering on Windows 11.
2026-09-15 17:38:31 -04:00
Marshall Greenblatt 1ba412df21 tests: Fix flaky DownloadTest cases and repeated Chrome-style slowdown
Cancel pending downloads before cleanup and retry directory deletion
up to ten times at 100 ms intervals. Guard teardown against reentry
and late download callbacks.

Disable Chrome's automatic download bubble during download tests,
restoring the previous preference afterward. Across repeats, this UI
work increasingly delays teardown.
2026-09-14 17:03:20 -04:00
Marshall Greenblatt 663a884dd6 tests: Fix repeated CORS tests and timeout cleanup
Disable preflight caching so repeated tests receive the expected
OPTIONS requests. Route timeout destruction through server observer
removal and cookie cleanup to prevent stale cookies and stack-use-
after-return crashes. Guard cookie verification against an
unexpected cookie count.
2026-09-12 18:12:30 -04:00
Marshall Greenblatt 74f180ec89 tests: Fix flaky DownloadTest.PauseResume 2026-09-12 17:01:48 -04:00
Marshall Greenblatt 090d0dfa58 Fix ozone define build error (see #4263) 2026-09-12 16:30:58 -04:00
Marshall Greenblatt b5b2064c99 osr: Add single external BeginFrame paint regression tests (see #2800)
Load a static page and issue WasResized followed by exactly one
SendExternalBeginFrame after OnLoadEnd. Verify all bitmap pixels at
1x and 2x scale without a repeating frame timer.
2026-09-12 16:12:31 -04:00
Marshall Greenblatt f05ead39c5 mac: Fix print preview saving, resizing and focus (fixes #3410)
Preserve the preview WebContents in the file-selection policy so
CEF can resolve the originating browser when saving a PDF.

Use the hosted BrowserView bounds for dialog sizing, and let AppKit
handle native resize edges without child-modal input blocking.

Restore focus to the topmost visible child-modal dialog after
resizing, provided the app is active and the parent still owns
keyboard focus.
2026-09-12 15:47:18 -04:00
Marshall Greenblatt 0da9e7222f Fix service worker request handler fallback (fixes #3593)
Use an available handler from the same browser context when worker
requests have no matching frame or process handler, for example
after page navigation or close.
2026-09-12 14:31:35 -04:00
Marshall Greenblatt bbc269c8bb Add regression test for worker fetch handling (see #3780) 2026-09-12 13:53:54 -04:00
Marshall Greenblatt 5c34390015 Fix message router calls from detached frames (fixes #4119)
Reject query and cancellation calls when the V8 context no longer
has a browser or frame, before registering the context or sending
messages.
2026-09-12 13:39:24 -04:00
Marshall Greenblatt 49815fbdaa osr: mac: cefclient: Fix accessibility object lifetime (fixes #3595)
Native accessibility objects now have explicit ownership, detach
safely before node deletion, and are released during view teardown.
2026-09-11 17:19:57 -04:00