Commit Graph
3598 Commits
Author SHA1 Message Date
Marshall Greenblatt 078448eb8a chrome: Move WCD callbacks out of BrowserDelegate
Centralize WebContentsDelegate callback handling in the new
ChromeBrowserWCD class. This change is strictly structural.
2026-09-06 13:10:23 -04:00
Marshall Greenblatt 2040e5a67c chrome: Extend BrowserWCD instead of patching
BrowserWebContentsDelegate was split from Browser in recent
refactoring and can now be extended instead of patched. This
change is strictly structural.
2026-09-06 13:10:23 -04:00
Marshall Greenblatt 99138d4522 docs: Add Beta 8037 branch 2026-09-06 13:10:23 -04:00
Marshall Greenblatt a37d75cf39 Tag 15400 API version 2026-09-06 13:10:23 -04:00
Marshall Greenblatt 213fbca5aa linux: Don't show Chromium eula dialog on startup 2026-09-06 13:10:23 -04:00
Marshall Greenblatt 3b187f4246 tests: Fix StreamResourceHandlerTest failures 2026-09-06 13:10:23 -04:00
Marshall Greenblatt 716cec2a64 chrome: Fix browser info timeouts for standalone WebUI windows
Recognize UI-element controllers without the preload marker, such as
Manage Chromium Profiles. Preserve WebUI pages owned by a CefBrowser.
2026-09-06 13:10:23 -04:00
Marshall Greenblatt ee71fa268b views: Skip omnibox WebUI when no Chrome toolbar is configured
Avoid creating unused omnibox WebContents for Views-hosted browsers
with CEF_CTT_NONE. Preserve WebUI popups for configured toolbars.
2026-09-06 13:10:23 -04:00
Marshall Greenblatt 40ca896ae8 chrome: Fix browser info timeouts for internal WebUI frames
Exclude Chrome UI contents using WebUIContentsPreloadState. These
contents have no owning CefBrowserHost, so allow excluded requests
to complete without browser info instead of waiting for a timeout.
2026-09-06 13:10:23 -04:00
Marshall Greenblatt 2d3ce7f943 views: Preserve overlay contents during Chrome window teardown
ChromeBrowserWidget closes owned widgets before the parent WindowClosing
callback can detach overlay contents. Closing an overlay widget with
CloseNow therefore deletes its contents View and invalidates the CefView
retained by the client.

Extract CefWindowView::CloseOverlayViews and call it from both
WindowClosing and ChromeBrowserWidget::CloseOwnedWidgets. This detaches
overlay contents and restores CEF ownership before owned widgets are
destroyed. Direct overlay widget closure retains its destruction behavior,
which Alloy overlay browsers need to complete browser shutdown.

Add an explicit IsValid assertion to the overlay destruction tests.

To test:
ceftests --gtest_filter=ChromeChildWindowTest.*:OwnedWidgetShutdownTest.*:ViewsBrowserViewTest.*
2026-09-06 13:10:23 -04:00
Marshall Greenblatt 33624e6bc2 Update to Chromium version 154.0.8037.0
- Windows SDK 10.0.28000.2270 is now required
- CefRegisterExtension is deprecated due to https://crbug.com/40347662
2026-09-06 13:10:22 -04:00
Marshall Greenblatt 7339013311 Close owned widgets before Browser deletion (see #4006)
Browser closure and native window destruction may occur in either order.
Subscribe ChromeBrowserWidget to BrowserDidClose so owned widgets are closed
synchronously before the Browser deletion task is posted. Retain the existing
OnNativeWidgetDestroying cleanup for the reverse ordering.

This prevents password and other Browser-owned bubbles from dereferencing
Browser state after it has been destroyed.
2026-08-20 14:24:09 -04:00
Marshall Greenblatt cd89341bfe chrome: Preserve request context for Inspect Element (fixes #4168)
Keep CEF-created unique OTR profiles when resolving the DevTools
profile so Inspect Element does not create the popup with the parent
profile. Add coverage for a non-global request context and verify that
the DevTools popup shares it.
2026-08-19 18:05:13 -04:00
Marshall Greenblatt 13ac447cca Close owned widgets before Chrome browser teardown (see #4006)
Close widgets owned by ChromeBrowserWidget from
OnNativeWidgetDestroying while the native ownership graph is still
available. This prevents popup widgets from outliving Browser state during
native-window-driven shutdown.

Add Chrome-style ceftests for JavaScript, password-save, and synthetic owned
widgets. Confirm that each widget exists before closing the main window and
verify deterministic destruction ordering for the synthetic case. Reset the
password dismissal statistics before loading the password form so repeated
test runs continue to exercise the save-password widget.
2026-08-19 17:38:32 -04:00
Marshall Greenblatt f8a915f046 alloy: Fix crash in ReadAnythingSoftNavigationObserver::OnSoftNavigation (fixes #4234) 2026-08-19 14:08:21 -04:00
Marshall Greenblatt 89749b7e67 Cancel intercepted requests before proxy teardown
BrowserContext cleanup can delete proxy factories while URL loaders
are still active, leaving request handler state populated during
destruction.

Add a shutdown hook that reuses the existing cancellation path
before erasing proxies. Handle pending initialization and repeated
shutdown safely.
2026-08-19 13:38:09 -04:00
Marshall Greenblatt 66cb09c78c docs: Add 7977 release branch 2026-08-19 13:37:28 -04:00
Marshall Greenblatt 1b4ea04698 Tag 15200 API version 2026-08-19 13:37:28 -04:00
Marshall Greenblatt df31007ab6 osr: Fix file chooser crash due to null native view
Guard the owning-window lookup in FileSelectHelper::RunFileChooserOnUIThread.

Add ceftests DialogTest.FileInputOSR test for triggering and canceling a file
input in OSR mode.
2026-08-19 13:37:28 -04:00
Marshall Greenblatt 4ec0bddb69 Update to Chromium version 152.0.7977.0 (#1669021) 2026-08-19 13:37:28 -04:00
Marshall Greenblatt ed5ea08861 claude: Fix analyze_patch_output paths for sub-repos 2026-08-19 13:37:27 -04:00
nik-sp 47488074b7 win: Use LPWSTR in wWinMain and RunWinMain (fixes #4241) (#4242)
`wWinMain` is the wide-character entry point -- `lpCmdLine` is always
`wchar_t*`. Using `LPTSTR` (a TCHAR-mapped type) creates a type mismatch
at the DLL boundary when client DLLs are built without `UNICODE`
defined.
2026-08-19 13:25:31 -04:00
Sergei af8ada6a3a Fix command-line parsing and UTF16 low surrogate handling (#4219)
Fix possible null dereference in ParseCommandLineArgs() and missed low
surrogate is not handled in UTF16ToUTF8().
2026-08-03 15:31:48 -04:00
迷渡 51f8bd76ea tools: Include CAPI deps for global function types (fixes #4123) (#4211)
Add CAPI include discovery for CEF pointer types used by global
function return values and arguments.
2026-08-03 15:30:16 -04:00
Ted 4e59cb706d linux: Fix callbacks to CefPrintHandler (fixes #4130) (#4210)
Two Chromium changes in M145 broke CefPrintHandler on Linux. Print
dialog creation moved to PrintingContextLinux::PrintDialogFactory,
whose default implementation bypasses CEF's printing delegate. Dialog
ownership also changed to std::unique_ptr.

Register a CEF factory that routes browsers with a CefPrintHandler
through CefPrintingContextLinuxDelegate while preserving Chromium's
default behavior for other browsers.

Use a unique_ptr-owned proxy around the reference-counted
CefPrintDialogLinux so asynchronous print jobs can outlive their
PrintingContext.

As with #3729, out-of-process printing must be disabled
(--disable-features=EnableOopPrintDrivers) for the callbacks to fire.
2026-07-30 16:54:41 -04:00
Brian Dupuis 5f7e87bf0c Fix BrowserWidget::OnTouchUiChanged crash (fixes #3941) (#4227)
Chrome-style browsers with a native parent use TYPE_CONTROL widgets,
which have no NonClientView, so client_view() returns nullptr. Guard
that InvalidateLayout call; the earlier non_client_view() check alone
was insufficient.
2026-07-30 16:32:54 -04:00
Marshall Greenblatt d299f9ad12 mac: Add libvulkan.dylib to framework/Libraries (fixes #4230) 2026-07-30 16:05:03 -04:00
Marshall Greenblatt 29a8e5f6dd installer: preserve healthy fallbacks during background updates (see #4093)
Replace cefclient's separate launch-health and update timers with a single
health-first task. Start the update only after launch_success returns structured
success so the running version becomes a confirmed fallback before a newer
version is installed.

Keep older confirmed launch records until the selected version's health is
durably confirmed. A normal exit remains neutral in explicit mode, while
exit-code and health-off modes retain their clean-exit pruning behavior.

Reconcile valid indexes under the installer lock by quarantining canonical
version directories absent from the index. Defer loaded-DLL cleanup through
.trash for later writers, and avoid emergency-recovery warnings for an empty
fresh store while preserving warnings for meaningful recovery attempts.

Expand unit and Windows E2E coverage for update ordering, confirmation and
persistence failures, fallback retention, pruning modes, loaded-version
quarantine, lock contention, and recovery. Update the installer documentation
to describe the combined behavior.

New behavior confirmed with cefclient:

1. Launch cefclient. After 60 seconds, 'launch_success' confirms the old
   version and 'update' installs the new version.
2. Exit and relaunch cefclient. Second run uses the new version. After 60
   seconds, 'launch_success' confirms the new version. Upon clean exit the
   old version loses fallback protection and is pruned.
2026-07-29 17:46:31 -04:00
Marshall Greenblatt 25807ea643 build: Pin depot_tools checkout to match deps version
The master depot_tools version has gclient.py changes that are
incompatible with tarball_gclient.patch.
2026-07-28 12:51:07 -04:00
Marshall Greenblatt 94d6118b7d docs: Fix installer.md source links for page rendering (see #4093) 2026-07-27 17:02:07 -04:00
Marshall Greenblatt fa3d4f0dbe docs: Add installer.md overview (see #4093) 2026-07-27 14:06:00 -04:00
Marshall Greenblatt 97c56bd5cd cefclient: cmake: Add -DUSE_INSTALLER=On option (see #4093)
Creates a Release-only Windows build configuration of cefclient with
installer integration enabled.
2026-07-27 14:06:00 -04:00
Marshall Greenblatt 1845c1e9f9 tools: Fix YAPF cache writes on Windows
Avoid tempfile.NamedTemporaryFile's effectively unbounded Windows retry.
Restricted sandboxes can deny YAPF grammar-cache writes. Write each cache
to a unique file, close it, and atomically replace it. Clean up failures
to prevent orphaned pickle files.

Upstream issue: https://github.com/google/yapf/issues/1311
2026-07-27 14:06:00 -04:00
Marshall Greenblatt 65e50f1c0b ai: Add testing guidance for tools/ 2026-07-27 14:06:00 -04:00
Marshall Greenblatt d43e90df57 tools: Restore translator notification context
Clear the parser notification context in a finally block for both CppToC
and CToCpp implementation writers, including when generation raises.

Update failure-path regressions to require context restoration while
preserving successful output behavior.
2026-07-27 14:06:00 -04:00
Marshall Greenblatt 8d83469d79 tools: Fix Python 3 CMake variable merging
Merge generated and manually maintained GYPI variables with copy and update
so the CLI works on Python 3 while preserving manual override precedence.

Add a hermetic CLI regression for exact output, progress diagnostics, and
unchanged repeated generation.
2026-07-27 14:06:00 -04:00
Marshall Greenblatt 3abf1e19b0 tools: Fix implementation generator CLI output
Unpack the CppToC and CToCpp generator results before writing generated
content to stdout. This preserves the existing generator return contracts.

Add successful CLI regressions that verify exact output, empty stderr, and
unchanged input files.
2026-07-27 14:05:59 -04:00
Marshall Greenblatt 66a6bb115d tools: Return failure for invalid distributions
Return a nonzero status when distribution option validation fails so callers
do not interpret rejected invocations as successful.

Replace the existing characterization with regressions that verify the status,
diagnostics, and absence of partial output artifacts.
2026-07-27 14:05:59 -04:00
Marshall Greenblatt 12e5a74d01 tools: Report pack include-only updates
Return the combined header and include write result from make_pack_header.
This ensures callers observe repairs that modify only the generated include.

Replace the existing bug characterization with a regression test for the
correct return contract. Generated file contents remain unchanged.
2026-07-27 14:05:59 -04:00
Marshall Greenblatt 75745dce64 tools: Add make generator test coverage
Add deterministic fixtures, goldens, and matching tests for all 18
make_* generators. Refactor make_distrib orchestration behind an
importable main entry point while preserving generated output. Add
passing characterizations for existing generator issues.
2026-07-27 14:05:59 -04:00
Marshall Greenblatt 3eeee9d063 Tag 15101 API version 2026-07-27 14:05:59 -04:00
Marshall Greenblatt 5b35bb581b claude: Add code coverage instructions and analysis
Add tools for analyzing code coverage of CEF installer tests:
- analyze_coverage_output.py: Parse llvm-cov JSON summaries, filter by
  path, and report uncovered functions and line ranges.
- CLAUDE_COVERAGE_INSTRUCTIONS.md: One-time setup and usage guide for
  generating coverage reports with llvm-profdata/llvm-cov.
- Unit tests for the analysis script.
2026-07-27 14:05:59 -04:00
Marshall Greenblatt cd81c6315a tests: Use CEF_API_VERSION_LAST for client DLL targets (see #4093)
When building a client DLL loaded by bootstrap.exe, default to the last
released API version instead of the experimental (unversioned) API. The
experimental API is not back/forward compatible across CEF versions and
does not bump the version number, so the installer's vmin-based version
selection cannot work safely against it. Building with
CEF_API_VERSION=CEF_API_VERSION_LAST makes the client forward-compatible
with newer libcef.dll binaries (via API backwards compatibility).
2026-07-27 14:05:59 -04:00
Marshall Greenblatt be20927a8d installer: Add bootstrap installer for Windows (see #4093)
Add a shared CEF installer that downloads, verifies, and manages CEF
binary distributions on Windows. The installer is embedded in
application bootstrap binaries and resolves the correct CEF version
from a CDN manifest based on each application's version and ABI
compatibility requirements.

Key components:
- CDN manifest parsing and version resolution
- WinHTTP-based download with SHA-1/SHA-256 integrity verification
- Authenticode catalog (.cat) signature verification
- Parallel XZ decompression for fast archive extraction
- Per-version metadata (cef_version.json) with full version tracking
- Shared installation database for multi-app version management
- Version pruning to reclaim disk space from unused versions
- Revocation list support (compiled-in baseline + CDN delta)
- Progress UI with WM_COPYDATA-based cancellation
- Bundled CEF fallback for offline/CDN-failure scenarios
2026-07-27 14:04:48 -04:00
Marshall Greenblatt 7324f016a3 cefbuilds: Add installer CDN query file generation (see #4093)
Add cef_installer_builder.py to generate per-milestone and per-platform
JSON manifests consumed by the CEF bootstrap installer. Extend
cef_json_builder.py with abi_hash, signed archive tracking, and
revocation list (revoked.json) support. Includes unit tests.
2026-07-19 14:58:46 -04:00
Marshall Greenblatt 803fe341df ai: Add tmp/ to .gitignore 2026-07-19 14:58:46 -04:00
Marshall Greenblatt 25c624e50b Fix validation of newer CEF structures
Allow size-prefixed structures passed by newer libcef versions to exceed
the client wrapper's local structure size. The wrapper already limits
copies to known fields, so rejecting larger structures breaks API forward
compatibility.

Add coverage using an older wrapper view of a newer structure.
2026-07-19 14:58:46 -04:00
Marshall Greenblatt df6c7a115f ceftests: Skip GBK download tests without a UTF-8 locale (see #4184) 2026-07-19 14:58:46 -04:00
Marshall Greenblatt b41c5c64fc Tag 15100 API version 2026-07-10 16:23:27 -04:00
Marshall Greenblatt 7672074da3 Fix added metadata for SendHttpResponseWithRawHeaders API (see #3135) 2026-07-10 16:22:25 -04:00