Benjamin Mann created CB-6315:
---------------------------------
Summary: app.clearHistory() silently fails
Key: CB-6315
URL: https://issues.apache.org/jira/browse/CB-6315
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 3.4.0
Reporter: Benjamin Mann
Priority: Minor
This issue should be trivial to resolve:
http://stackoverflow.com/questions/20091152/webview-issue-on-android
Call app.clearHistory() in JS, get the following stack trace in logcat:
W/WebView (25178): java.lang.Throwable: A WebView method was called on thread
'JavaBridge'. All WebView methods must be called on the same thread. (Expected
Looper Looper (main, tid 1) {41f38938} called on Looper (JavaBridge, tid 10154)
{41f91fc8}, FYI main Looper is Looper (main, tid 1) {41f38938})
W/WebView (25178): at android.webkit.WebView.checkThread(WebView.java:2063)
W/WebView (25178): at
android.webkit.WebView.clearHistory(WebView.java:1399)
W/WebView (25178): at org.apache.cordova.App.clearHistory(App.java:193)
W/WebView (25178): at org.apache.cordova.App.execute(App.java:92)
W/WebView (25178): at
org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:65)
W/WebView (25178): at
org.apache.cordova.PluginManager.execHelper(PluginManager.java:242)
W/WebView (25178): at
org.apache.cordova.PluginManager.exec(PluginManager.java:227)
W/WebView (25178): at
org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:53)
W/WebView (25178): at
com.android.org.chromium.base.SystemMessageHandler.nativeDoRunLoopOnce(Native
Method)
W/WebView (25178): at
com.android.org.chromium.base.SystemMessageHandler.handleMessage(SystemMessageHandler.java:27)
W/WebView (25178): at android.os.Handler.dispatchMessage(Handler.java:102)
W/WebView (25178): at android.os.Looper.loop(Looper.java:136)
W/WebView (25178): at android.os.HandlerThread.run(HandlerThread.java:61)
--
This message was sent by Atlassian JIRA
(v6.2#6252)