Murilo Pereira created CB-1257:
----------------------------------
Summary: Exception is thrown when calling
`navigator.app.backHistory()` on android 4.1
Key: CB-1257
URL: https://issues.apache.org/jira/browse/CB-1257
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 2.0.0
Environment: Cordova 2.0.0, Galaxy Nexus Android 4.1.1
Reporter: Murilo Pereira
Assignee: Joe Bowser
Priority: Minor
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira