Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.4.0
-
None
-
None
Description
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)
)
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)