Descriptionaw: Destroy ContentViewCore and WebContents together
Even though it's having WebContents without a ContentViewCore
is a support scenario in //content, it's not a well tested
path, especially the webview only code. This makes sure
ContentViewCore and WebContents are destroyed together.
Instead of posting on native side to destroy WebContents,
post on Java side and have one call destroy both Java and
native side.
More specific details:
* All caller except destroy to AwContents.destroyNatives
either have already detached webview so ok to move detach
to destroy.
* Need to remove some asserts that objects are null when
mIsDestroyed is true.
* Reordered some native AwContents members so they are
naturally destroyed in the correct order.
BUG=
Committed: https://crrev.com/4947ca3ee453380304d0bbb6a382b3eea93a6fca
Cr-Commit-Position: refs/heads/master@{#302513}
Patch Set 1 #Patch Set 2 : fixes #Patch Set 3 : use Handler #
Total comments: 11
Patch Set 4 : new Handler #Patch Set 5 : test onPageFinished #Patch Set 6 : test to ShouldOverrideUrlLoading #
Messages
Total messages: 27 (4 generated)
|