Make 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 Review URL: https://codereview.chromium.org/1036893002 Cr-Commit-Position: refs/heads/master@{#322380}
Showing
Please register or sign in to comment