Commit Graph

6641 Commits

Author SHA1 Message Date
amaitland c0facbba04 DevTools Client - Upgrade to 152.0.7977.83 v152.0.60 2026-09-13 11:24:40 +10:00
amaitland d877833605 Upgrade to 152.0.6+g708dc14+chromium-152.0.7977.83 / Chromium 152.0.7977.83 2026-09-12 13:07:17 +10:00
coderabbitai[bot] 1af9a8e0fa Document arm64 resource folders in CefRuntime APIs 2026-09-12 12:46:09 +10:00
M4ttsson fdcbc4118a Copy arm64 files for AnyCpu builds (#5288)
Co-authored-by: M4ttsson <4147055+M4ttsson@users.noreply.github.com>
2026-09-12 12:46:09 +10:00
amaitland 16a5845ba2 CefSharp.Common.targets - fix arm64 AnyCPU copy target 2026-09-12 12:46:09 +10:00
amaitland d99e01ce09 CefSharp.BrowserSubprocess.csproj - update for arm64 2026-09-12 12:46:09 +10:00
James Charters 019cd64723 Core - Update to support ARM64 for .Net 4.8.1 2026-09-12 12:46:09 +10:00
amaitland 9e310d1cdd Upgrade to 151.3.24+g2384915+chromium-151.0.7922.174 / Chromium 151.0.7922.174 2026-09-12 12:01:25 +10:00
amaitland 73e8243ee4 Upgrade to 151.3.17+gf059e67+chromium-151.0.7922.138 / Chromium 151.0.7922.138 2026-09-12 12:01:25 +10:00
campersau ef8ab9e0dc Core - Update CefErrorCode and PermissionRequestType for Chromium 151.0.7922.109 (#5289)
Sync with net/base/net_error_list.h from
https://raw.githubusercontent.com/chromium/chromium/151.0.7922.109/net/base/net_error_list.h

CefErrorCode:
- Add LocalNetworkPermissionMissing (-36)
- Add StrictEchRequired (-37)
- Add ControlMsgTooBig (-189)
- Obsolete ProxyRequired (-368)
- Add CacheCompressionFailure (-414)
- Add DnsDirectOnly (-821)

PermissionRequestType (from CEF's cef_types.h, branch matching
chromium/7922, cef_permission_request_types_t):
- Add Sensors (1 << 28)

This is a breaking change due to the removed ProxyRequired member.


Claude-Session: https://claude.ai/code/session_01Xuu9fkhBxEDWGaHKFgg2jS

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-12 11:59:42 +10:00
Vaibhav Srivastava 6011f2c79e docs: fix typo avaliable -> available (#5287)
Signed-off-by: Vaibhav Srivastava <vaibhavsri1712@gmail.com>
2026-08-30 07:42:34 +10:00
John Hodnik f2b87feac3 Core - OnSelectClientCertificate own the copied certificate vector (#5281)
* Fix deferred client certificate selection reading freed memory

CefCertificateCallbackWrapper held the offered certificate list as
`const X509CertificateList&`, bound to a stack local built in
ClientAdapter::OnSelectClientCertificate. Once that handler returned the
list was destroyed, so calling Select() at any later point walked freed
memory and threw inside the thumbprint-matching loop, taking the host
process down with it.

CEF explicitly permits answering later. cef_request_handler.h says to
return true and call Select "either in this method or at a later time",
so a wrapper that outlives the handler has to own the list it selects
from. It now holds a heap-allocated copy, freed in the finalizer. A ref
class cannot contain a std::vector by value, hence the pointer. Copying
the vector copies the reference-counted CefX509Certificate pointers, and
those references are what keep the certificates alive.

This is the remaining half of #2948. The comment above the caller reads
"Create a copy of the vector in an attempt to fix #2948", and the copy is
indeed made - but it is then bound by reference, so it dies at the same
instant the original would have.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Remove the redundant certificate vector copy in ClientAdapter

The wrapper takes its own copy in its constructor, so the local copy added
by a51cdd37 in ClientAdapter::OnSelectClientCertificate is now pure
redundancy - two copies where one is needed. Pass `certificates` straight
through instead.

Also refreshes the comment on _certificateList, which described the caller's
stack local that this removes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: John Hodnik <jhodnik@activu.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-29 12:54:32 +10:00
amaitland 89ead4d56d Test - RequestContextTests.CanObservePreferenceChange dispose of registration 2026-08-29 11:00:49 +10:00
Schuyler Tan 732afb1f66 Core - Add AddPreferenceObserver support. (#5279)
* Core - Add `AddPreferenceObserver` support.
2026-08-29 10:44:25 +10:00
amaitland 16bc6e0711 DevTools Client - Upgrade to 151.0.7922.109 2026-08-12 13:21:59 +10:00
amaitland 218f420e96 Upgrade to 151.3.16+gbe1e15d+chromium-151.0.7922.109 / Chromium 151.0.7922.109 2026-08-11 19:27:30 +10:00
campersau 7af206edbb Update cef references from bitbucket to github (#5278)
* Update reference from https://bitbucket.org/chromiumembedded/cef to  https://github.com/chromiumembedded/cef

* Apply suggestion from @campersau
2026-08-08 07:32:32 +10:00
amaitland 0707a9cbf2 Upgrade to 151.3.14+g5d67476+chromium-151.0.7922.72 / Chromium 151.0.7922.72 2026-08-02 08:10:39 +10:00
amaitland 6331b89120 DevTools Client - Upgrade to 150.0.7871.115 2026-07-14 19:46:15 +10:00
amaitland 6887d1987c Upgrade to 150.0.11+gb887805+chromium-150.0.7871.115 / Chromium 150.0.7871.115 2026-07-12 18:01:18 +10:00
Schuyler Tan 9f3be65def Core - Expose IsInterrupted and InterruptReason to DownloadItem. (#5266)
* Core -  Expose `IsInterrupted` and `InterruptReason` to DownloadItem.
2026-06-25 19:41:41 +10:00
amaitland f6ac9f35b9 DevTools Client - Update to 149.0.7827.156 2026-06-21 07:48:37 +10:00
amaitland c00744cd5a Upgrade to 149.0.4+g2f1bfd8+chromium-149.0.7827.156 / Chromium 149.0.7827.156 2026-06-20 20:05:15 +10:00
amaitland 4661a77a2c Core - Remove ChromeCommandIds
- Will remove in the short term until we can get these generated as the ids reportedly
  are in a constant state of flux.
2026-06-13 07:11:09 +10:00
Schuyler Tan 95d20a8265 Core - Support Chrome command execution. (#5257)
* Core - Support Chrome command execution.

- Add `Cef.MapChromeCommandNameToId`.
- Add `IBrowserHost.CanExecuteChromeCommand`
- Add `IBrowserHost.ExecuteChromeCommand`
2026-06-13 07:09:27 +10:00
amaitland afb971469b Upgrade to 149.0.2+ged5b3fd+chromium-149.0.7827.53 / Chromium 149.0.7827.53 2026-06-07 08:38:56 +10:00
amaitland 823c3c8f17 README.md - Update release branches 2026-06-07 08:38:55 +10:00
Jozef Izso e4991c2947 Add the RequestContext.ClearHttpCache(callback) method.
This exposes the `CefRequestContext::ClearHttpCache(callback)` from CEF 144 release.
See the `cef.sdk\cef\include\cef_request_context.h` file.
2026-06-03 17:34:47 +10:00
Jozef Izso 5d48d8d909 Add the DownloadItem.IsPaused property
This wraps the `CefDownloadItem::IsPaused()` from CEF 144 release.
See the `cef.sdk\cef\include\cef_download_item.h` file.
2026-06-03 17:34:47 +10:00
amaitland f8ac2d9e02 DevTools Client - Upgrade to 148.0.7778.180 2026-05-28 20:54:31 +10:00
amaitland 1ec32b9ebf Upgrade to 148.0.9+g0d9d52a+chromium-148.0.7778.180 / Chromium 148.0.7778.180 2026-05-27 19:17:39 +10:00
amaitland 3475c7ef14 Core - FolderSchemeHandlerFactory improve path check to prevent break out
- Prevent accessing resources outside of the root path specified.
- Add Test to verify
2026-05-23 15:38:49 +10:00
Schuyler Tan b5fef3bb4b Core - Automatically merge enable-features/disable-features command-line arguments with existing values (#5245)
* Core - Automatically merge `enable-features/disable-features` command-line arguments with existing values
2026-05-18 20:34:14 +10:00
campersau fd87988c39 Move LegacyBindingEnabled / JavascriptBindingPropertyName to per browser settings (#5231)
* Move LegacyBindingEnabled / JavascriptBindingPropertyName to per browser settings

* Stricter test

---------

Co-authored-by: Alex Maitland <amaitland@users.noreply.github.com>
2026-04-30 21:25:18 +10:00
amaitland a4f649a652 DevTools Client - Upgrade to 147.0.7727.118 2026-04-30 19:51:14 +10:00
amaitland 0d97181f04 Upgrade to 147.0.10+gd58e84d+chromium-147.0.7727.118 / Chromium 147.0.7727.118 2026-04-28 21:16:21 +10:00
amaitland 1a9fb91e9d Upgrade to 146.0.10+g8219561+chromium-146.0.7680.179 / Chromium 146.0.7680.179 2026-04-11 08:50:01 +10:00
amaitland 1adf863c56 Issue Template - Update for 146 Release 2026-04-11 08:49:07 +10:00
campersau 00c8aa5449 Allow JavaScript binding when browser wrapper cannot be found (#5229)
* Allow JavaScript binding when browser wrapper cannot be found

* Store JavascriptBindingSettings per Browser and never remove them

This avoids the issue that sometimes browsers are destroyed but then referenced again without them beeing created

* Use dict->Values
2026-04-10 18:00:04 +10:00
amaitland 24e7df2cb7 DevTools Client - Upgrade to 146.0.7680.165 2026-03-29 08:55:20 +10:00
amaitland 41e3a7569b Test - CookieManagerTests.ShouldClearCookies wait for render to finish
- Wait for render idle instead of navigation, we might still
  need to investigate why the navigation completed on a reload
  isn't allowing JS evaluation
2026-03-29 08:07:35 +10:00
amaitland 52e425012a Test - Skip JavascriptCallbackTests.ShouldCancelAfterV8ContextChange (Broken in M146) 2026-03-28 21:07:07 +10:00
strau0106 6381ab2f4f Core - Add chrome_policy_id to CefSettings (#5227)
* Core - Add chrome_policy_id to CefSettings

* Core - Update RefAssembly for ChromPolicyID in CefSettings.
2026-03-27 12:23:14 +10:00
amaitland 0b7d85b999 Upgrade to 146.0.7+ga6b143f+chromium-146.0.7680.165 2026-03-26 21:09:12 +10:00
amaitland 918d12820e Tests - EvaluateScriptAsyncTests.ShouldCancelAfterV8ContextChange increase delay
- Increase delay as still failing on appveyor
2026-03-26 20:54:11 +10:00
amaitland df4ba2eeb9 Tests - EvaluateScriptAsyncTests.ShouldCancelAfterV8ContextChange add delay
- Add a delay before trying to execute the callback to allow for the message
  to arrive from the render process
2026-03-26 18:52:14 +10:00
amaitland 017876e092 Upgrade to 146.0.6+g68649e2+chromium-146.0.7680.154 / Chromium 146.0.7680.154 2026-03-25 19:57:43 +10:00
luca-sonntag 00d57a555c Javascript Binding - Finalize JavascriptBindingApiAllowOrigins: Per-browser isolation and origin normalization (#5218)
* Javascript Binding - Add Ability to limit origins

* Move JS binding settings to CefBrowserWrapper and optimize origin validation

* Initialize origins to null

* Normalize allowed origins

* Optimize origin validation

* Add null check for origin compare

* Fix JavaScript Binding API settings for popups

Move the JS binding API configuration block out of the !browser->IsPopup() scope
in OnBrowserCreated. This ensures that IsJavascriptBindingApiAllowed() enforces
configured restrictions for popups as well.

* Fix possible null deref for JavascriptBindingApiAllowOrigins

In IsJavascriptBindingApiAllowed, added a null check for JavascriptBindingApiAllowOrigins
to prevent a potential null dereference if JavascriptBindingApiHasAllowOrigins is true
but the allowOrigins list itself was null.

* Simplify origin normalization and add null check

* Add more test cases

* Refactor IsJavascriptBindingApiAllowed signature

Refactored IsJavascriptBindingApiAllowed to accept a CefBrowserWrapper^ parameter directly, eliminating redundant lookups and improving clarity. Updated all call sites to pass the browser wrapper explicitly.

* Clarify summary for HasJavascriptBindingApiAllowOrigins

Clarify documentation for HasJavascriptBindingApiAllowOrigins method to specify zero or more origins

* Simplify origin comparison logic in CefAppUnmanagedWrapper

Refactored code to directly compare wide string origins using
_wcsicmp, removing unnecessary pointer casts and null checks.
This streamlines the logic and improves readability.

* Add tests for JavaScript binding API behavior across cross-origin navigation

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
Co-authored-by: Luca Sonntag <luca.sonntag@cgm.com>
2026-03-22 07:35:54 +10:00
amaitland 6de821c185 BrowserSubProcess - Disable warnings as errors 2026-02-22 08:12:40 +10:00
amaitland 8fd619c241 Core - Fix CPP compiler warnings 2026-02-22 07:58:30 +10:00