incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shazron <shaz...@gmail.com>
Subject Re: [DISCUSS] window.open target blank
Date Mon, 06 Aug 2012 22:27:22 GMT
Brian, I think you are confusing this:
    https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVViewController.m#L483

For the whitelist, which is this, which is lower level and intercepts
all network requests:
  https://github.com/apache/incubator-cordova-ios/blob/master/CordovaLib/Classes/CDVWhitelist.m

target=_blank  -- no for iOS. You must remember we are trying to open
URLs that are NOT in the whitelist.

On Mon, Aug 6, 2012 at 3:16 PM, Jesse MacFadyen <purplecabbage@gmail.com> wrote:
> Brian: The API for childbrowser should be window.open w/ a
> polyfill for target=blank to be in harmony w/ browsers and our goal of
> compatibility/obsolescence.
>
> Shaz: target=_blank, 100% no for iOS, it is impossible (yes, really) for the
> thousandth time - read CB-362.
>
> Shaz, you can polyfil in JS, just have to override HTMLAnchor's click.
>
> Brian, I think the API should provide the ability to target
> a) the current DOM
> b) the default browser
> c) a plugin ( child browser )
>
> Or do you envision the CB plugin setting itself as the default?
>
> Cheers,
> Jesse
>
> Sent from my iPhone5

Mime
View raw message