Description[Android] Avoid using ContentViewCore when detaching from RWHVAndroid
The shutdown sequence for a given WebContents involves the
ContentViewCore detaching itself from WebContentsViewAndroid. This in
turn detaches the ContentViewCore from RenderWidgetHostViewAndroid.
However, as the state of the ContentViewCore may be inconsistent during
shutdown, calls into ContentViewCore during detachment may be
unreliable.
Avoid such calls by caching the WindowAndroid exposed by
ContentViewCore; the window has stronger lifetime guarantees and can
safely be used during detachment.
BUG=479878, 464642
Committed: https://crrev.com/039f8ee45bcdcc61bf62f1f1f18a92b6a4a3958a
Cr-Commit-Position: refs/heads/master@{#327401}
Patch Set 1 #Patch Set 2 : Final usage #Patch Set 3 : Proper build #
Total comments: 1
Patch Set 4 : Comment #
Total comments: 2
Patch Set 5 : Remove unnecessary change #
Messages
Total messages: 9 (2 generated)
|