DescriptionMake GC test catch strong ref from client objects
In the public sdk API, apps should be able to hold a strong WebView
reference from WebChromeClient or WebViewClient, without having to worry
about preventing WebView from gc-ed.
Simulate that behavior in testCreateAndGcManyTimes by having the
AwContentsClient hold a strong reference to AwContents.
And remove the strong ref from AwWebContentsObserver to
make the test pass.
BUG=469803
Committed: https://crrev.com/9a424d2eeb702d73fb6173e3e70827d77d68ddb7
Cr-Commit-Position: refs/heads/master@{#322380}
Patch Set 1 #Patch Set 2 : Fix test and AwWebContentsObserver #Patch Set 3 : visual state callback can't hold strong ref either #Patch Set 4 : findbugs #
Messages
Total messages: 12 (5 generated)
|