Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
-
None
-
Cordova 2.0.0, Galaxy Nexus Android 4.1.1
Description
When calling `navigator.app.backHistory()` on android 4.1 I see the following on the logcat output:
W/webview_proxy(16553): java.lang.Throwable: Warning: A WebView method was called on thread 'Thread-8550'. All WebView methods must be called on the UI thread. Future versions of WebView may
not support use on other threads.
W/webview_proxy(16553): at android.webkit.WebView.checkThread(WebView.java:1796)
W/webview_proxy(16553): at android.webkit.WebView.canGoBack(WebView.java:894)
W/webview_proxy(16553): at org.apache.cordova.CordovaWebView.backHistory(CordovaWebView.java:503)
W/webview_proxy(16553): at org.apache.cordova.App.backHistory(App.java:179)
W/webview_proxy(16553): at org.apache.cordova.App.execute(App.java:71)
W/webview_proxy(16553): at org.apache.cordova.api.PluginManager$1.run(PluginManager.java:192)
W/webview_proxy(16553): at java.lang.Thread.run(Thread.java:856)
W/webview_proxy(16553): java.lang.Throwable: Warning: A WebView method was called on thread 'Thread-8550'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
W/webview_proxy(16553): at android.webkit.WebView.checkThread(WebView.java:1796)W/webview_proxy(16553): at android.webkit.WebView.goBack(WebView.java:902)
W/webview_proxy(16553): at org.apache.cordova.CordovaWebView.backHistory(CordovaWebView.java:504)
W/webview_proxy(16553): at org.apache.cordova.App.backHistory(App.java:179)
W/webview_proxy(16553): at org.apache.cordova.App.execute(App.java:71)
W/webview_proxy(16553): at org.apache.cordova.api.PluginManager$1.run(PluginManager.java:192)
W/webview_proxy(16553): at java.lang.Thread.run(Thread.java:856)
Although this exception is thrown cordova does return one position in history.
The exception is not thrown on an HTC Bravo with android 2.3.7.