[ https://issues.apache.org/jira/browse/CB-9060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14621035#comment-14621035 ]
Dan Polivy commented on CB-9060: -------------------------------- Can you try against cordova-android@4.0.2? I don't know what's changed in master or if that will have any impact on it. If you run it with a debugger attached, you should see the error handler called when WebView can't lookup the invalid URL. If that's not getting called, then perhaps you need to adjust the whitelist, or use another URL which you know won't resolve, or use a good URL, but test with network connectivity turned off. I could probably send you a zip of my project directory if that helps. On the "unsupported" comment, if you have any suggestions on how to better handle the scenario of starting a remote app without network connectivity that doesn't result in a white screen, I'd love to discuss (we can take that discussion elsewhere)! > [Android] CordovaWebViewImpl.showWebPage loads in WebView AND launches intent > ----------------------------------------------------------------------------- > > Key: CB-9060 > URL: https://issues.apache.org/jira/browse/CB-9060 > Project: Apache Cordova > Issue Type: Bug > Components: Android > Affects Versions: 4.0.0 > Reporter: Dan Polivy > Assignee: Joe Bowser > Priority: Minor > > With cordova-android@4.0.0 and the new whitelist functionality, it seems that > calls to CordovaWebView.showWebPage (via CordovaWebViewImpl implementation) > are getting launched both in the app WebView AND via Intent in the system > browser. > This happens when, for example, the Cordova app is hosted remotely, so the > actual URL is a http://www.somedomain.com/url, and the developer has included > the following in config.xml: > <!-- Allow links to web pages to open in a browser --> > <allow-intent href="http://*/*" /> > <allow-intent href="https://*/*" /> > Then, if in the app, there is a call to showWebPage with a URL at > http://www.somedomain.com, it will launch in both places. > Should there be a return statement at Line 216 to prevent any attempt to load > the URL externally, if we actually load it internally? > https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/CordovaWebViewImpl.java#L216 -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org