You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create the browser immediately after Initialize() instead of via OnContextInitialized
Revert the browser-creation-timing workaround. Under cefpython's single-threaded
message loop the Chrome runtime initializes the browser context during
CefInitialize(), so CreateBrowserSync() can be called immediately after
Initialize() returns and runs synchronously. This is the pre-existing pattern and
keeps the examples and unit-test harness simple, with no global client callback,
no deferred-embed helpers, and no polling.
- cefpython.pyx: drop the CreateBrowserSync() guard that required the context
callback and drop OnContextInitialized from the SetGlobalClientCallback allow-list.
- Remove the now-unused OnContextInitialized wiring entirely: the
g_context_initialized flag (cefpython.pyx), the
BrowserProcessHandler_OnContextInitialized function (browser_process_handler.pyx),
and its call in subprocess/cefpython_app.cpp.
- Restore immediate browser creation in all examples and in the main/osr/issue517
unit tests.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
0 commit comments