From a37d75cf39520b2241cb76d1f42387c2258a74db Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Fri, 4 Sep 2026 13:47:18 -0400 Subject: [PATCH] Tag 15400 API version --- cef_api_versions.json | 9 ++++++++- include/cef_v8.h | 6 +++--- include/internal/cef_types.h | 2 +- libcef/renderer/v8_impl.cc | 2 +- tests/ceftests/v8_unittest.cc | 10 +++++----- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/cef_api_versions.json b/cef_api_versions.json index ad52652f9..208cd9744 100644 --- a/cef_api_versions.json +++ b/cef_api_versions.json @@ -169,8 +169,15 @@ "mac": "1e4981499ff0bace8da030a21a16a6613f46703c", "sandbox_compat": "1671cc913eeb4ecf", "windows": "1dde3bb571a5ee5aedd646ed4694d4bc8d9a2d96" + }, + "15400": { + "comment": "Added September 04, 2026.", + "linux": "5c8344ae7d7f6421bc801401e35d4dbf6d38e101", + "mac": "e5cd28047fc1f8bbb972e54692fc665040c7f034", + "sandbox_compat": "265fca9293e6b6ef", + "windows": "726dc73763db22edb289e41af2421a232617f7f4" } }, - "last": "15200", + "last": "15400", "min": "13300" } \ No newline at end of file diff --git a/include/cef_v8.h b/include/cef_v8.h index 56ef3412b..4f6104bff 100644 --- a/include/cef_v8.h +++ b/include/cef_v8.h @@ -52,7 +52,7 @@ class CefV8Handler; class CefV8StackFrame; class CefV8Value; -#if CEF_API_REMOVED(CEF_NEXT) +#if CEF_API_REMOVED(15400) /// /// Register a new V8 extension with the specified JavaScript extension code and /// handler. Functions implemented by the handler are prototyped using the @@ -113,11 +113,11 @@ class CefV8Value; /// example.test.increment(); /// /// -/*--cef(optional_param=handler,removed=next)--*/ +/*--cef(optional_param=handler,removed=15400)--*/ bool CefRegisterExtension(const CefString& extension_name, const CefString& javascript_code, CefRefPtr handler); -#endif // CEF_API_REMOVED(CEF_NEXT) +#endif // CEF_API_REMOVED(15400) /// /// Class representing a V8 context handle. V8 handles can only be accessed from diff --git a/include/internal/cef_types.h b/include/internal/cef_types.h index 072d2d971..fed23a55e 100644 --- a/include/internal/cef_types.h +++ b/include/internal/cef_types.h @@ -3737,7 +3737,7 @@ typedef enum { CEF_CPAIT_PAYMENTS_CHURNED_USERS, CEF_CPAIT_FAKE_PAGE_ACTION_FOR_DEBUG, #endif -#if CEF_API_ADDED(CEF_NEXT) +#if CEF_API_ADDED(15400) CEF_CPAIT_WALLET_REMINDER_NOTICE, #endif CEF_CPAIT_NUM_VALUES, diff --git a/libcef/renderer/v8_impl.cc b/libcef/renderer/v8_impl.cc index 10252544e..28f8ff6e2 100644 --- a/libcef/renderer/v8_impl.cc +++ b/libcef/renderer/v8_impl.cc @@ -826,7 +826,7 @@ void CefV8SetWorkerAttributes(int worker_id, const GURL& worker_url) { bool CefRegisterExtension(const CefString& /*extension_name*/, const CefString& /*javascript_code*/, CefRefPtr /*handler*/) { - CEF_API_REQUIRE_REMOVED(CEF_NEXT); + CEF_API_REQUIRE_REMOVED(15400); NOTIMPLEMENTED(); return false; } diff --git a/tests/ceftests/v8_unittest.cc b/tests/ceftests/v8_unittest.cc index 736f37749..0099ccbf1 100644 --- a/tests/ceftests/v8_unittest.cc +++ b/tests/ceftests/v8_unittest.cc @@ -105,7 +105,7 @@ enum V8TestMode { V8TEST_STACK_TRACE, V8TEST_ON_UNCAUGHT_EXCEPTION, V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS, -#if CEF_API_REMOVED(CEF_NEXT) +#if CEF_API_REMOVED(15400) V8TEST_EXTENSION, #endif V8TEST_HANDLER_CALL_ON_RELEASED_CONTEXT, @@ -300,7 +300,7 @@ class V8RendererTest : public ClientAppRenderer::Delegate, // Run a test on render process startup. void RunStartupTest() { switch (test_mode_) { -#if CEF_API_REMOVED(CEF_NEXT) +#if CEF_API_REMOVED(15400) case V8TEST_EXTENSION: RunExtensionTest(); break; @@ -2928,7 +2928,7 @@ class V8RendererTest : public ClientAppRenderer::Delegate, "window.setTimeout(test, 0)", browser_->GetMainFrame()->GetURL(), 0); } -#if CEF_API_REMOVED(CEF_NEXT) +#if CEF_API_REMOVED(15400) // Test execution of a native function when the extension is loaded. void RunExtensionTest() { std::string code = @@ -2957,7 +2957,7 @@ class V8RendererTest : public ClientAppRenderer::Delegate, CefRegisterExtension("v8/test-extension", code, new Handler(&startup_test_success_)); } -#endif // CEF_API_REMOVED(CEF_NEXT) +#endif // CEF_API_REMOVED(15400) void OnBrowserCreated(CefRefPtr app, CefRefPtr browser, @@ -3585,7 +3585,7 @@ V8_TEST_EX(Binding, V8TEST_BINDING, kV8BindingTestUrl) V8_TEST(StackTrace, V8TEST_STACK_TRACE) V8_TEST(OnUncaughtException, V8TEST_ON_UNCAUGHT_EXCEPTION) V8_TEST(OnUncaughtExceptionDevTools, V8TEST_ON_UNCAUGHT_EXCEPTION_DEV_TOOLS) -#if CEF_API_REMOVED(CEF_NEXT) +#if CEF_API_REMOVED(15400) V8_TEST(Extension, V8TEST_EXTENSION) #endif V8_TEST_EX(HandlerCallOnReleasedContext,