You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2013/10/10 18:45:41 UTC
[jira] [Resolved] (CB-4087) Exception Thrown from
InAppBrowser.close on Android SDK 17
[ https://issues.apache.org/jira/browse/CB-4087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-4087.
-------------------------------
Resolution: Fixed
Assignee: Andrew Grieve
I think this is fixed from the changes to CB-4858
> Exception Thrown from InAppBrowser.close on Android SDK 17
> ----------------------------------------------------------
>
> Key: CB-4087
> URL: https://issues.apache.org/jira/browse/CB-4087
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin InAppBrowser
> Affects Versions: 2.8.0
> Environment: Android SDK 17
> Reporter: Neale Genereux
> Assignee: Andrew Grieve
> Labels: InAppBrowser
>
> When calling the close method on an InAppBrowser instance, the following line throws an exception:
> InAppBrowser.java line 298
> this.inAppWebView.loadUrl("about:blank");
> java.lang.Throwable: Warning: A WebView method was called on thread 'WebViewCoreThread'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.
> at android.webkit.WebView.checkThread(WebView.java:13864)
> at android.webkit.WebView.loadUrl(WebView.java:2940)
> at org.apache.cordova.InAppBrowser.closeDialog(InAppBrowser.java:298)
> at org.apache.cordova.InAppBrowser.execute(InAppBrowser.java:153)
> at org.apache.cordova.api.CordovaPlugin.execute(CordovaPlugin.java:66)
> at org.apache.cordova.api.PluginManager.exec(PluginManager.java:215)
> at org.apache.cordova.ExposedJsApi.exec(ExposedJsApi.java:51)
> at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
> at android.webkit.JWebCoreJavaBridge.sharedTimerFired(Native Method)
> at android.webkit.JWebCoreJavaBridge.fireSharedTimer(JWebCoreJavaBridge.java:92)
> at android.webkit.JWebCoreJavaBridge.handleMessage(JWebCoreJavaBridge.java:108)
> at android.os.Handler.dispatchMessage(Handler.java:99)
> at android.os.Looper.loop(Looper.java:137)
> at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:823)
> at java.lang.Thread.run(Thread.java:856)
> This call should be removed or run on the UI thread
--
This message was sent by Atlassian JIRA
(v6.1#6144)