DescriptionSpeculative fix for DelegatedFrameHost destructor crashes
It appears that RenderWidgetHostViewMac::Destroy is never getting
called in some instances, and that is resulting in crashes when we end
up in its destructor, which is called by Objective C's runtime.
I suspect that this is a leak somewhere, and that on other platforms we
simply never call the destructor.
Call the necessary bits of RenderWidgetHostViewMac::Destroy to avoid
crash when a RenderWidgetHostImpl reaches its destructor before its
view_ has been reset.
Also, turn the weak pointers to RenderWidgetHostViewBase in
RenderWidgetHostImpl and RenderWidgetHostViewGuest
to use base::WeakPtr to prevent the many dangling instances.
BUG=404828
Committed: https://crrev.com/c54cc7cb4a7910f83b6501f8122b06ba5c8b3a45
Cr-Commit-Position: refs/heads/master@{#293573}
Patch Set 1 #Patch Set 2 : git cl try #Patch Set 3 : Add weak pointers #Patch Set 4 : Smaller version #Patch Set 5 : For real this time #Patch Set 6 : Absolutely minimal fix #
Messages
Total messages: 22 (6 generated)
|