damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

waitForEvent in WebView doesn't end even if script ends #189

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:28

Samsung Galaxy S - Android 2.1

What steps will reproduce the problem?
1. Create a python script that creates a WebView
2. In the javascript of the HTML file opened by webview, have a 
waitForEvent("someevent"), without timeout value
3. Exit or Crash the python script without posting the corresponding event
4. Restart the script; the WebView doesn't launch

A solution has been, at stage 4 to hit the home button, enter the "Running 
applications", end sl4a altogether. Restart sl4a and the script works again.

Tq

Mat

Original issue reported on code.google.com by mathieu....@gmail.com on 17 Nov 2010 at 9:18

Attachments:

Copied from original issue: damonkohler/android-scripting#479