cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timo Ernst (JIRA)" <>
Subject [jira] [Commented] (CB-10753) InAppBrowser will not work with iframe embedded
Date Mon, 07 Mar 2016 16:34:40 GMT


Timo Ernst commented on CB-10753:

Argh, you're right. I dug through my code and found deep within this:

$(document).on('click', 'a[href^=http], a[href^=https]', function (e) {
  var $this = $(this),
  target = $'inAppBrowser') || '_blank';$this.attr('href'), target, 'location=no,closebuttoncaption=Fertig,disallowoverscroll=yes,toolbar=yes,enableViewportScale=yes,toolbarposition=bottom');

When I remove this links will not be opened via InAppBrowser.

However, this won't solve my problem. I cannot step into the iframe(s) and do the same thing
to all links in there as they're hosted on different domains (because of same origin policy).

Also, I think that calling, '_blank') from within the iframe won't open the
url via InAppBrowser.

(I don't want the link(s) do be opened in safari browser. I want all links as well as all
calls to within iframes opened via InAppBrowser layer/view within the app).

> InAppBrowser will not work with iframe embedded
> -----------------------------------------------
>                 Key: CB-10753
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugin InAppBrowser
>            Reporter: Timo Ernst
> When a Cordova app has an iframe within its index.html page and this iframe has a link
with target set to "_blank", then InAppBrowser will not open a new webview layer. Instead,
the whole root webview of the app will be redirected to the url set in the link and there
is no way back! This is a true nightmare and needs to be fixed.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message