Chromium Code Reviews
Descriptionandroid: Fix ContentViewCore and RenderWidgetHostViewAndroid lifetime issue
https://codereview.chromium.org/26753005/ might have introduced crashes that
trace to SetContentViewCore. That previous patch assumed that ContentViewCore
(CVC) always outlives its associated RenderWidgetHostView. In this patch, we
are trying to ensure that the RWHVA pointer to CVC is nulled when CVC is
destroyed.
Note the following:
- WebContents owns ContentViewCore and WebContentsView.
- CVC and WebContentsView are implicitly destroyed (no direct call to clean-up
code). So ContentViewCore cannot refer to WebContents or WebContentsView in
its destructor.
Therefore, we use the observer of when WebContents is destroyed to start the
clean up on CVC.
BUG=335165, 324341
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247878
Patch Set 1 #Patch Set 2 : nit #
Total comments: 6
Patch Set 3 : ContentViewCoreImpl is already a WebContentsObserver #
Messages
Total messages: 15 (0 generated)
|
||||||||||||||||||||||||||||