You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/05/22 21:01:04 UTC

[jira] [Commented] (CB-6315) app.clearHistory() silently fails

    [ https://issues.apache.org/jira/browse/CB-6315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14006329#comment-14006329 ] 

ASF subversion and git services commented on CB-6315:
-----------------------------------------------------

Commit 629e05b7b1c93108bcdb992f9e7f22656b43cff9 in cordova-android's branch refs/heads/master from [~bowserj]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=629e05b ]

CB-6315: Wrapping this so it runs on the UI thread


> 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
>            Assignee: Joe Bowser
>            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)