Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-6315

app.clearHistory() silently fails

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.0
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:
      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)

      {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)

        Attachments

          Activity

            People

            • Assignee:
              bowserj Joe Bowser
              Reporter:
              8enmann Benjamin Mann
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: