[aw] Ensure that WebView APIs do not crash if called after destruction.
commit781fc47c526db3aabbf86dfca15edaaa018fc67d
authorigsolla <igsolla@chromium.org>
Mon, 22 Sep 2014 19:57:10 +0000 (22 12:57 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 22 Sep 2014 19:57:20 +0000 (22 19:57 +0000)
treedc873adacd97c1598606eb895011a0bf00eae704
parent04b8324d8c252c8110037ec5fb4344ac8035addf
[aw] Ensure that WebView APIs do not crash if called after destruction.

The documentation for WebView#destroy() reads "This method should be called
after this WebView has been removed from the view system. No other methods
may be called on this WebView after destroy". However, some apps do not
respect that restriction so this change ensures that we fail gracefully
in that case and do not crash.

BUG=415666

Review URL: https://codereview.chromium.org/581423002

Cr-Commit-Position: refs/heads/master@{#296029}
android_webview/java/src/org/chromium/android_webview/AwContentViewClient.java
android_webview/java/src/org/chromium/android_webview/AwContents.java
android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java