Neale Genereux created CB-4087:
----------------------------------

             Summary: 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: Steve Gill


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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to