From dfec2cff99c2b5b128ee5e1b75beb852fd9ca5e5 Mon Sep 17 00:00:00 2001 From: campersau Date: Wed, 2 Sep 2026 12:58:24 +0000 Subject: [PATCH] Core - Update CefErrorCode and PermissionRequestType for Chromium 151.0.7922.109 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. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Xuu9fkhBxEDWGaHKFgg2jS --- CefSharp/Enums/CefErrorCode.cs | 39 ++++++++++++++++++++++--- CefSharp/Enums/PermissionRequestType.cs | 1 + 2 files changed, 36 insertions(+), 4 deletions(-) diff --git a/CefSharp/Enums/CefErrorCode.cs b/CefSharp/Enums/CefErrorCode.cs index 4c56479c42..a0ad62c525 100644 --- a/CefSharp/Enums/CefErrorCode.cs +++ b/CefSharp/Enums/CefErrorCode.cs @@ -211,6 +211,21 @@ public enum CefErrorCode /// BlockedInIncognitoByAdministrator = -35, + /// + /// The request was blocked because the local network permission is missing. + /// Note that this is different from BlockedByLocalNetworkAccessChecks + /// which is specifically for a CORS error code. + /// + LocalNetworkPermissionMissing = -36, + + /// + /// The request was blocked because ECH is strictly required, but: + /// - The client could not obtain a valid ECH configuration. + /// - The server rejected the ECH, and the client failed to establish a new ECH + /// connection after retrying with retry_configs. + /// + StrictEchRequired = -37, + /// /// A connection was closed (corresponding to a TCP FIN). /// @@ -682,6 +697,12 @@ public enum CefErrorCode ProxyDelegateCanceledConnectResponse = -188, + /// + /// The control message was too large for the transport. (for example a UDP + /// message control data exceeds size threshold). + /// + ControlMsgTooBig = -189, + // Certificate error codes // // The values of certificate error codes must be consecutive. @@ -1126,10 +1147,9 @@ public enum CefErrorCode /// PacScriptTerminated = -367, - /// - /// Signals that the request requires the IPP proxy. - /// - ProxyRequired = -368, + // Obsolete. Support for CNAME record detection was never fully implemented and + // is no longer needed since the IP Protection feature didn't launch. + // NET_ERROR(PROXY_REQUIRED, -368) // Obsolete. Kept here to avoid reuse. // Request is throttled because of a Backoff header. @@ -1320,6 +1340,11 @@ public enum CefErrorCode /// CacheOpenOrCreateFailure = -413, + /// + /// Zstd compression of a cache entry body failed. + /// + CacheCompressionFailure = -414, + /// /// The server's response was insecure (e.g. there was a cert error). /// @@ -1570,6 +1595,12 @@ public enum CefErrorCode /// DnsOtherFailure = -820, + /// + /// Declined to call DNS for a direct_only request of a hostname whose traffic + /// would be routed through a proxy. + /// + DnsDirectOnly = -821, + // The following errors are for mapped from a subset of invalid // storage::BlobStatus. diff --git a/CefSharp/Enums/PermissionRequestType.cs b/CefSharp/Enums/PermissionRequestType.cs index a1cc8f32c0..5647fde24e 100644 --- a/CefSharp/Enums/PermissionRequestType.cs +++ b/CefSharp/Enums/PermissionRequestType.cs @@ -43,5 +43,6 @@ public enum PermissionRequestType : uint LocalNetworkAccess = 1 << 25, LocalNetwork = 1 << 26, LoopbackNetwork = 1 << 27, + Sensors = 1 << 28, } }