Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0F011200BCF for ; Mon, 5 Dec 2016 13:20:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0DC9A160AF9; Mon, 5 Dec 2016 12:20:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 57751160B17 for ; Mon, 5 Dec 2016 13:19:59 +0100 (CET) Received: (qmail 71872 invoked by uid 500); 5 Dec 2016 12:19:58 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 71785 invoked by uid 99); 5 Dec 2016 12:19:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2016 12:19:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5F4F32C1F56 for ; Mon, 5 Dec 2016 12:19:58 +0000 (UTC) Date: Mon, 5 Dec 2016 12:19:58 +0000 (UTC) From: "jcesarmobile (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12211) InAppBrowser - problem in iOS 10 when try to open an url in external browser with window.open(url, "_system") MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 05 Dec 2016 12:20:00 -0000 [ https://issues.apache.org/jira/browse/CB-12211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15722117#comment-15722117 ] jcesarmobile commented on CB-12211: ----------------------------------- Do you have a Content-Security-Policy meta tag in your index.html? If you have it, post it. > InAppBrowser - problem in iOS 10 when try to open an url in external browser with window.open(url, "_system") > ------------------------------------------------------------------------------------------------------------- > > Key: CB-12211 > URL: https://issues.apache.org/jira/browse/CB-12211 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser > Environment: iOS 10 > Reporter: Marco > > Consider the following scenario: > 1. My Cordova App have a filter based on InAppBrowser like this: > function openurlinexternalbrowser() { > $(document).on('click', 'a[target="_system"],a[target="_blank"]', function (e) { > e.preventDefault(); > var url = this.href; > window.open(url, "_system"); > }); > } > 2. This filter permits to open the url in anchor tag ( ... ) in external browser. For example: > Test Google > 3. So, my App uses InAppBrowser plugin and calls "window.open" with "_system" as a target. > --- WRONG BEHAVIOUR --- > What's happen when I try to open an url? > - in iOS 9, all works fine, url it's open in external browser after click on a link; > - in iOS 10 nothing happen, but if you click on a link, and then click twice on the home button (like when you enter in multitasking mode), the browser appears and it opens the url. > It's possible to fix this problem? > Thank you -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org