Android WebView enters unrecoverable state if executed JavaScript enters infinite loop
问题 The Android WebView widget appears to enter an unrecoverable state if executed JavaScript code is caught in an infinite loop. For example, this webpage will cause the problem: <html> <head> <title>FAIL</title> <script type="text/javascript"> function test() { while (true); } </script> </head> <body onload="test();"> Failure Test </body> As will simply entering the following URL in any Android browser using WebView: javascript:while(true); Once such an infinite loop is encountered, one CPU