Core - Update CefErrorCode and PermissionRequestType#5213
Core - Update CefErrorCode and PermissionRequestType#5213amaitland merged 2 commits intocefsharp:masterfrom
Conversation
📝 WalkthroughWalkthroughCefSharp enum updates: Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@CefSharp/Enums/CefErrorCode.cs`:
- Around line 1364-1376: The enum member name HttpengineProviderInUse in the
CefErrorCode enum uses incorrect PascalCase; rename it to
HttpEngineProviderInUse to match the file's naming conventions (e.g.,
Http2ProtocolError, Http11Required) and keep the same underlying value (-508)
and existing XML doc comment unchanged; update any references/usages of
CefErrorCode.HttpengineProviderInUse throughout the codebase to
CefErrorCode.HttpEngineProviderInUse to avoid build errors.
|
✅ Build CefSharp 144.0.120-CI5413 completed (commit 904e1bac29 by @campersau) |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
CefSharp/Enums/CefErrorCode.cs (1)
278-279: Consider using[Obsolete]attributes before removing enum members outright.Eight enum members are removed in this PR (
NoSslVersionsEnabled,HttpsProxyTunnelResponseRedirect,SslHandshakeNotCompleted,SslBadPeerPublicKey,SynReplyNotReceived,EncodingConversionFailed,UnrecognizedFtpDirectoryListingFormat,DnsServerFailed). While the PR is correctly marked as a breaking change, adding[Obsolete("Removed in Chromium 145", error: true)]for one release cycle would give downstream consumers a clear compiler message and a smoother migration path, rather than an unexplained missing-symbol error.This is entirely optional if CefSharp's versioning policy permits hard breaks aligned with Chromium updates.
Example for one of the removed members
[Obsolete("Removed upstream. See Chromium 145 net_error_list.h.", error: true)] NoSslVersionsEnabled = -112,🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@CefSharp/Enums/CefErrorCode.cs` around lines 278 - 279, Add Obsolete attributes for the enum members removed in this PR so consumers get a clear compiler message: for each removed member (NoSslVersionsEnabled, HttpsProxyTunnelResponseRedirect, SslHandshakeNotCompleted, SslBadPeerPublicKey, SynReplyNotReceived, EncodingConversionFailed, UnrecognizedFtpDirectoryListingFormat, DnsServerFailed) in CefErrorCode (CefSharp/Enums/CefErrorCode.cs) declare the member with [Obsolete("Removed upstream. See Chromium 145 net_error_list.h.", error: true)] and keep the original numeric value for one release cycle before actually deleting the member to provide a smooth migration path.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In `@CefSharp/Enums/CefErrorCode.cs`:
- Around line 1364-1376: The enum member HttpEngineProviderInUse is correctly
PascalCased, but there's a leftover duplicate-review marker; remove the stray
"[duplicate_comment]" artifact from the PR/comment and ensure there are no
duplicated XML doc remarks for the CefErrorCode.HttpEngineProviderInUse enum
entry so the documentation block appears only once and remains exactly as shown.
---
Nitpick comments:
In `@CefSharp/Enums/CefErrorCode.cs`:
- Around line 278-279: Add Obsolete attributes for the enum members removed in
this PR so consumers get a clear compiler message: for each removed member
(NoSslVersionsEnabled, HttpsProxyTunnelResponseRedirect,
SslHandshakeNotCompleted, SslBadPeerPublicKey, SynReplyNotReceived,
EncodingConversionFailed, UnrecognizedFtpDirectoryListingFormat,
DnsServerFailed) in CefErrorCode (CefSharp/Enums/CefErrorCode.cs) declare the
member with [Obsolete("Removed upstream. See Chromium 145 net_error_list.h.",
error: true)] and keep the original numeric value for one release cycle before
actually deleting the member to provide a smooth migration path.
|
✅ Build CefSharp 144.0.120-CI5414 completed (commit 03ac157fb8 by @amaitland) |
PermissinRequestType got updated again in 145.0.7632.0
Summary:
Updated
CefErrorCodeusing https://raw.githubusercontent.com/chromium/chromium/145.0.7632.0/net/base/net_error_list.h and steps described in #3785Updated
PermissionRequestTypeusing https://github.com/chromiumembedded/cef/blob/bfb74aa1a42355203a43fa89f38e7737e954f67f/include/internal/cef_types.h#L3822-L3856Changes:
How Has This Been Tested?
Build works.
Screenshots (if appropriate):
Types of changes
Checklist:
Summary by CodeRabbit
New Features
Bug Fixes