incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Rogish (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic
Date Tue, 20 Dec 2011 21:27:30 GMT

    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173516#comment-13173516
] 

Matt Rogish commented on CB-94:
-------------------------------

We're trying to use an iframe to load 3rd party banner ads. If we set OpenThisWhitelistURLsInWebView
= NO then merely loading a page with an iframe will dump out to local Mobile Safari.

Setting OpenThisWhitelistURLsInWebView = YES will render the iframe OK, but any links that
are clicked will either open in the iframe (bad) or if we set target="_parent", obliterate
the parent frame (where our content is).

What we want to do is:
1) Render the iframe locally
2) Capture the link and it to ChildBrowser (or open in local safari)

As it's ad-network code, we don't know the URLs of the links ahead of time, so a whitelist
wouldn't work.
                
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>
> The good news: OpenThisWhitelistURLsInWebView works perfectly. 
> The not so good news: Once that boolean is set to yes, there is no way to force a link
to jump out and open in a browser. It's all or nothing. How, in the case of an app requiring
OpenAllWhitelistURLsInWebView = Yes for some pages, can you also force a particular link to
open outside of the in-app webview?
> In practice, it would be nice (and fairly universally useful) to be able to specify whether
a link's behavior does or does not open in webview on an individual basis. For example in
the same app you have some embed or iframe links that should be opened in the app's webview,
and, other links on a FB or twitter badge to jump out to follow or to "like" a page, or "if
you like this app, click here to jump to our website to find out more" types of links.
> Maybe it is as simple as using target="_blank" inside an < a> tag to signify jumping
out of the app and opening in a browser?
> or maybe this scheme as an expected behavior ...
> If the OpenAllWhitelistURLsInWevView boolean is set to YES,
> then,
> any external links in the whitelist (ExternalHosts array) will open up in WebView.
> Inversely,
> any external links NOT on the whitelist will open externally.
> Thoughts?

--
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

        

Mime
View raw message