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
fix: guard against NULL CefBrowser during rapid frame lifecycle transitions
CefFrame::GetBrowser() can return a null CefRefPtr while a frame is being
created or destroyed during rapid navigation (e.g. heavy pages with many
iframes). The naked .get().GetIdentifier() chain in GetPyFrame() was a
latent SIGSEGV; all handler entry points that call GetPyFrame() or dereference
the frame's browser pointer now return their safe defaults when the browser
pointer is NULL.
Affected files:
- src/frame.pyx: store GetBrowser() result, check .get() before chaining
- src/handlers/load_handler.pyx: OnLoadStart / OnLoadEnd / OnLoadError
- src/handlers/display_handler.pyx: OnAddressChange
- src/handlers/v8context_handler.pyx: OnContextCreated
- src/handlers/request_handler.pyx: OnBeforeBrowse, OnBeforeResourceLoad,
GetResourceHandler, OnResourceRedirect, GetAuthCredentials
- src/handlers/cookie_access_filter.pyx: CanSendCookie, CanSaveCookie
- src/handlers/lifespan_handler.pyx: OnBeforePopup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments