Fix a bug failing Android webview CTS test
JavascriptInjector instance cached in |AwContents| was left untouched upon destruction. This is fine for normal webview but popup window whose WebContents is swapped out on loading kept using the cached one, therefore caused a problem restoring the injected Javascript interface objects into the new WebContents. This CL fixes that by nulling it out, and adds an instrumentation that does what the failing CTS test does. Bug: 800941 Change-Id: I8fb50998fd461316d6fd4dc34f6a02f95856d24d Reviewed-on: https://chromium-review.googlesource.com/886122Reviewed-by:Bo <boliu@chromium.org> Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Cr-Commit-Position: refs/heads/master@{#532296}
Showing
Please register or sign in to comment