Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 87B901895A for ; Tue, 10 Nov 2015 14:29:11 +0000 (UTC) Received: (qmail 45286 invoked by uid 500); 10 Nov 2015 14:29:11 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 45243 invoked by uid 500); 10 Nov 2015 14:29:11 -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 45214 invoked by uid 99); 10 Nov 2015 14:29:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Nov 2015 14:29:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 42C3B2C1F5A for ; Tue, 10 Nov 2015 14:29:11 +0000 (UTC) Date: Tue, 10 Nov 2015 14:29:11 +0000 (UTC) From: "Sergey Grebnov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-9573) window.open(url,"_self") for whitelisted url opens InAppBrowser instead of updating current WebView in Android MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Grebnov resolved CB-9573. -------------------------------- Resolution: Invalid > window.open(url,"_self") for whitelisted url opens InAppBrowser instead of updating current WebView in Android > -------------------------------------------------------------------------------------------------------------- > > Key: CB-9573 > URL: https://issues.apache.org/jira/browse/CB-9573 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin InAppBrowser > Affects Versions: 5.1.1 > Reporter: Sebastien Lorber > > I use > - CLI 5.1.1 > - Android platform 4.0.2 > - InAppBrowser 1.0.1 > - Crosswalk plugin 1.2.0 > My config.xml contains: > {code} > > > > > > > > > {code} > Then I run the following code when the app starts: > {code} > function deviceReady() { > window.open("http://www.google.fr","_self"); > } > document.addEventListener('deviceready', deviceReady, false); > {code} > It opens the InAppBrowser instead of making the WebView navigate to the url. It is not the expected behavior according to the doc: > bq. _self: Opens in the Cordova WebView if the URL is in the white list, otherwise it opens in the InAppBrowser. > If this time I remove the InAppBrowser proxy/wrapper (like mentionned in the doc): > {code} > function deviceReady() { > delete window.open; > window.open("http://www.google.fr","_self"); > } > document.addEventListener('deviceready', deviceReady, false); > {code} > Then it opens the url in the system browser (not sure this is expected either right? but maybe it's Android / Crosswalk webview default anyway...) > Notice that I absolutly don't want to use in any way the InAppBrowser, I just only need to be able in some cases to use the _system target, that is made available by the InAppBrowser -- 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