Skip to content

Conversation

@metux
Copy link

@metux metux commented Jan 20, 2026

  1. views: callback for clearing native_delegate_

    When closing the browser, the native_delegate back reference might still
    point to the CefBrowserPlatformDelegateNativeAura object, while it's
    already been destroyed (via UserData destruction), leading the dangling
    pointer detection to crash the browser.

    Calling from CefBrowserPlatformDelegateChromeViews::BrowserDestroyed()
    back into the view delegate in order to clear that reference.

  2. views: ChildWindowDelegate: clear native_delegate_ on destruct

    Make sure we don't have any dangling pointers to already destroyed objects.
    Even if they aren't actually accessed anymore, that's still causing the
    reference checker to panic (thus crashing the application).

metux added 2 commits January 20, 2026 19:57
When closing the browser, the native_delegate back reference might still
point to the CefBrowserPlatformDelegateNativeAura object, while it's
already been destroyed (via UserData destruction), leading the dangling
pointer detection to crash the browser.

Calling from CefBrowserPlatformDelegateChromeViews::BrowserDestroyed()
back into the view delegate in order to clear that reference.

Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
Make sure we don't have any dangling pointers to already destroyed objects.
Even if they aren't actually accessed anymore, that's still causing the
reference checker to panic (thus crashing the application).

Signed-off-by: Enrico Weigelt, metux IT consult <[email protected]>
@magreenblatt
Copy link
Collaborator

This implementation detail should not be exposed via the public API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants