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 2C234200C4D for ; Wed, 5 Apr 2017 15:02:52 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2AB63160B9E; Wed, 5 Apr 2017 13:02:52 +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 73496160B91 for ; Wed, 5 Apr 2017 15:02:51 +0200 (CEST) Received: (qmail 75251 invoked by uid 500); 5 Apr 2017 13:02:50 -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 75239 invoked by uid 99); 5 Apr 2017 13:02:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2017 13:02:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 3878E1A7A7F for ; Wed, 5 Apr 2017 13:02:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.001 X-Spam-Level: X-Spam-Status: No, score=-100.001 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id P88tj1vBH2kV for ; Wed, 5 Apr 2017 13:02:49 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 8C4F55FE48 for ; Wed, 5 Apr 2017 13:02:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E2570E06FE for ; Wed, 5 Apr 2017 13:02:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A16E52401A for ; Wed, 5 Apr 2017 13:02:41 +0000 (UTC) Date: Wed, 5 Apr 2017 13:02:41 +0000 (UTC) From: "Nikita Matrosov (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-12407) InAppBrowser object reference AND events lost MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 05 Apr 2017 13:02:52 -0000 [ https://issues.apache.org/jira/browse/CB-12407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15956809#comment-15956809 ] Nikita Matrosov commented on CB-12407: -------------------------------------- [~othon2000], does this bug reproduce with the following code: {code:javascript} let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 'location=no,zoom=no,hidden=no'); blankBrowser.on('loadstart').subscribe( event => { //some behavior } ); blankBrowser.on('loadstop').subscribe( event => { let systemBrowser = new InAppBrowser('https://anotherurl.com', '_system', 'location=no,zoom=no,hidden=no'); } ); {code} > InAppBrowser object reference AND events lost > --------------------------------------------- > > Key: CB-12407 > URL: https://issues.apache.org/jira/browse/CB-12407 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin InAppBrowser > Affects Versions: 6.4.0 > Environment: android (never tried other plaforms) > Reporter: Othon Crelier > > If you have an instance of InAppBrowser, say, with target=_blank, and then you create a new instance with target=_system, your original InAppBrowser reference gets lost, and the events assigned to it stop working. > {code:javascript} > let blankBrowser = new InAppBrowser('https://someurl.com', '_blank', 'location=no,zoom=no,hidden=no'); > blankBrowser.on('loadstart').subscribe( > event => { > //some behavior > } > ); > let systemBrowser = new InAppBrowser('https://anotherurl.com', '_system', 'location=no,zoom=no,hidden=no'); > //bang! the events assigned to blankBrowser go away, and I cannot do anything with the reference > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org