DescriptionFix WindowAndroid leak in Android WebView
WebView creates a WindowAndroid class per AwContents, but never calls
destroy on it, so the native WindowAndroid leaks. Do this in
CleanupReference of AwContents.
Also make native WindowAndroid hold a strong reference, so removes
the requirement to null check the ref, which are mostly missing anyway.
Notes:
* This adds the requirement that WindowAndroid cannot hold strong ref
that would prevent AwContents/ContentViewCore from being gc-ed,
which currently is the case.
* This does not address the issue that WindowAndroid should be
per-activity, not per ContentViewCore.
BUG=469803
Committed: https://crrev.com/f1c913e8c18946c07d1a64f118b2d36e1bbe170f
Cr-Commit-Position: refs/heads/master@{#322159}
Patch Set 1 #
Messages
Total messages: 9 (2 generated)
|