You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Created) (JIRA)" <ji...@apache.org> on 2011/11/30 00:41:39 UTC

[jira] [Created] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13440833#comment-13440833 ] 

Shazron Abdullah commented on CB-94:
------------------------------------

The InAppBrowser (was ChildBrowser) feature would fix this: http://wiki.apache.org/cordova/InAppBrowser
                
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> 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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Matt Rogish (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13173515#comment-13173515 ] 

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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Matt Rogish (Commented) (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Davy Hubrecht (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13258065#comment-13258065 ] 

Davy Hubrecht commented on CB-94:
---------------------------------

+1, I want some url's to open in safari and some in an iframe
                
> 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
>             Fix For: 1.7.0
>
>
> 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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Barry vd. Heuvel (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13189016#comment-13189016 ] 

Barry vd. Heuvel commented on CB-94:
------------------------------------

Is anyone working or looking in to this? Or is there a simple quickfix/alternate method?
                
> 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

        

[jira] [Updated] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Matt Rogish (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Rogish updated CB-94:
--------------------------

    Comment: was deleted

(was: 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

        

[jira] [Resolved] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-94.
--------------------------------

       Resolution: Later
    Fix Version/s:     (was: 2.2.0)

Will be resolved in CB-1507 for iOS (CB-1506 for all platforms)
                
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Cordova
>          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
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Matt Rogish (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13181655#comment-13181655 ] 

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

The other issue is that it doesn't appear that parent.postMessage() works, either, so we can't even send it up to our PhoneGap app. Bummer.
                
> 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

        

[jira] [Updated] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-94:
-------------------------------

    Fix Version/s:     (was: 2.0.0)
                   2.1.0
    
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> 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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13459195#comment-13459195 ] 

Shazron Abdullah commented on CB-94:
------------------------------------

Once we have InAppBrowser tasks (cross-platform) we should close this and refer to that task.
                
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.2.0
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Samyak Bhuta (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13228310#comment-13228310 ] 

Samyak Bhuta commented on CB-94:
--------------------------------

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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415479#comment-13415479 ] 

Shazron Abdullah commented on CB-94:
------------------------------------

The consensus in the mailing list is to include the ChildBrowser plugin into core.
                
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> 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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Cameron Perry (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13165960#comment-13165960 ] 

Cameron Perry commented on CB-94:
---------------------------------

This is proving to be a MAJOR headache. Really, all I need is some way to allow *some* domains to open within the window - like iframe content (often YouTube, Vimeo, etc) content. I'm fine with having to create a whitelist for my API domains, but forcing all links, even with target="_blank" or window.open() is show stopper.


                
> 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

        

[jira] [Updated] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-94:
-------------------------------

    Fix Version/s:     (was: 1.8.0)
                   2.0.0

Intimately related to CB-362. Punting to 2.0.0 since this is a breaking change - discussion and decision still needs to be made on how to proceed with this change.
                
> OpenAllWhitelistURLsInWebView setting still problematic
> -------------------------------------------------------
>
>                 Key: CB-94
>                 URL: https://issues.apache.org/jira/browse/CB-94
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.0.0
>
>
> 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

        

[jira] [Updated] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-94:
-------------------------------

    Fix Version/s: 1.7.0
    
> 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
>             Fix For: 1.7.0
>
>
> 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

        

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159655#comment-13159655 ] 

Shazron Abdullah commented on CB-94:
------------------------------------

by: http://github.com/amirudin (2011-11-22T15:48:08Z)

Dear Dev Team

This is a good feature for Callback. Not all white-listed link have to be opened in Webview while not all should be opened in Safari. It is good to have this kind of flexibility in plist

+1

Thanks

by: http://github.com/pagameba (2011-11-24T13:20:22Z)

I would like to provide some feedback on this too, I just spent a couple of days wrestling with the iframe thing and this solution is not really workable for my use case.  I think the root of the problem is that whitelisted hosts used in an iframe still get pushed out to safari because the mainDocumentURL for an iframe is not nil.  The comment in the code (PhoneGapDelegate.m around line 693) says it will be nil for an iframe - its not (at least not anymore). Commit https://github.com/callback/callback-ios/commit/36e50c803539064a9b12ea4e759cc5513085e441 provides a bypass mechanism but that causes problems if you want to whitelist a domain for loading an iframe but don't necessarily want all activity in that domain to be whitelisted (i.e. a tags with target _blank should still go to safari).  My specific example is that I am trying to use the google maps api and to do so I need to whitelist www.google.com because I am calling a web service rooted at www.google.com/fusiontables.  However, the terms of service link embedded in the google map links to www.google.com/some-other-url.  I also have a separate iframe that goes to another url.  If I enable this option to allow the iframe to load then the terms of service link opens inside my web view despite having a target _blank and I have no control to get back to the app.  If I disable the option, the links work but the iframe doesn't.

For the specific problem of not being able to load iframes inline, I think a better solution would be to allow whitelisting of specific URLs - not just domains - and that these URLs would bypass the mainDocumentURL test.  If you are designing an app that needs to use iframes for some legitimate reason, you probably know or can trace the exact urls that need to be whitelisted.  Perhaps these could be tracked in a separate plist key as well to make it clear what they are.

by: http://github.com/pagameba (2011-11-24T13:32:20Z)

I should add that the solution that I arrived at was very simply to return YES in my AppDelegate webView: shouldStartLoadWithRequest: navigationType: method if the url matches my iframe source rather than calling super.

                
> 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

       

[jira] [Commented] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Barry vd. Heuvel (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178352#comment-13178352 ] 

Barry vd. Heuvel commented on CB-94:
------------------------------------

I second this issue.

I want to load a port of my app locally, and the rest from online sources (if possible). So I have to enable this function. But I also want to link to external websites from my app, so it needs to leave the app and start a new browser window. Target="_blank" seems like a good option to me to.
Any ideas on how to implement of work around this?
                
> 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

        

[jira] [Updated] (CB-94) OpenAllWhitelistURLsInWebView setting still problematic

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-94?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah updated CB-94:
-------------------------------

    Fix Version/s:     (was: 1.7.0)
                   1.8.0

Punting to 1.8.0, similar to CB-362 solution
                
> 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
>             Fix For: 1.8.0
>
>
> 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