From dd264f69ed8cf5e58748a34ed50282db0d082b69 Mon Sep 17 00:00:00 2001 From: Tao Bai Date: Mon, 30 Jan 2017 16:54:28 -0800 Subject: [PATCH] WebView: Revise the behavior of crash handle API To make backward compatible, kills application when render process is killed by system. Bug: 30824898 Test: No test, this is document revision. Change-Id: I12862ee9ed1986ec274fe627782542e8d8414856 --- core/java/android/webkit/WebViewClient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/webkit/WebViewClient.java b/core/java/android/webkit/WebViewClient.java index 8703468a74a7..0a73e17dd6e4 100644 --- a/core/java/android/webkit/WebViewClient.java +++ b/core/java/android/webkit/WebViewClient.java @@ -488,7 +488,8 @@ public class WebViewClient { * @param view The WebView which needs to be cleaned up. * @param detail the reason why it exited. * @return true if the host application handled the situation that process has - * exited, otherwise, application will crash. + * exited, otherwise, application will crash if render process crashed, + * or be killed if render process was killed by the system. */ public boolean onRenderProcessGone(WebView view, RenderProcessGoneDetail detail) { return false; -- 2.11.0