Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DanglingPtr] Fix
WebUIBubbleManagerImpl
dangling patch
A patch was added to `WebUIBubbleManagerImpl` when enabling the dangling pointer detector on Linux, as a temporary measure. This change corrects the the underlying issue requiring this pointer to be marked as dangling. This particular dangling pointer occurred because the toolbar view was being passed as the achor for this browser data bubbles, the toolbar gets destroyed prior to these browser data bubbles being disposed. This PR adds checks during in the `BraveBrowserView` dtor, to make sure there are no dangling references to the toolbar view by the time the termination is cleaning up browser data. Resolves brave/brave-browser#42196
- Loading branch information