Check for destroyed WebView before adding a callback in didNavigateMainFrame
commit46473984c6887c2a7b5a8602ef5526e6d16b06ec
authortobiasjs <tobiasjs@chromium.org>
Mon, 27 Apr 2015 17:04:55 +0000 (27 10:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 17:05:19 +0000 (27 17:05 +0000)
tree4bc50a302524d3e254063f55f781b2ad6d4d2176
parent14bad6085f9499ee8568617cdba884daaf489caf
Check for destroyed WebView before adding a callback in didNavigateMainFrame

Check to make sure at the time that didNavigateMainFrame occurs that
the WebView is not destroyed (in which case skip registering the
visual state listener callback for onPageCommitVisible).

BUG=481534

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

Cr-Commit-Position: refs/heads/master@{#327062}
android_webview/java/src/org/chromium/android_webview/AwContents.java
android_webview/java/src/org/chromium/android_webview/AwWebContentsObserver.java