You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Sebastian Betzinger (JIRA)" <ji...@apache.org> on 2015/10/23 06:25:27 UTC

[jira] [Updated] (CB-9845) inappbrowser close function not working as intended, leaving instance of inappbrowser running

     [ https://issues.apache.org/jira/browse/CB-9845?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebastian Betzinger updated CB-9845:
------------------------------------
    Description: 
Code of index.js:

var ref;

function xy() {
ref = cordova.InAppBrowser.open(...);
}

function ab() {
ref.close();
xy();
}

xy();

ab();


InAppBrowser instance stays opened with url "about:blank" in foreground and a second instance of InAppBrowser is launched in background.

Should be: instance of InAppBrowser should be purged and closed instead of being held with "about:blank"

  was:
Code of index.js:

var ref;

function xy() {
ref = cordova.InAppBrowser.open(...);
}

function ab() {
ref.close();
xy();
}

ab();


InAppBrowser instance stays opened with url "about:blank" in foreground and a second instance of InAppBrowser is launched in background.

Should be: instance of InAppBrowser should be purged and closed instead of being held with "about:blank"


> inappbrowser close function not working as intended, leaving instance of inappbrowser running
> ---------------------------------------------------------------------------------------------
>
>                 Key: CB-9845
>                 URL: https://issues.apache.org/jira/browse/CB-9845
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, iOS, Plugin InAppBrowser
>    Affects Versions: Master
>         Environment: Mac OSX/Win10/Ubuntu14.04
>            Reporter: Sebastian Betzinger
>            Priority: Critical
>
> Code of index.js:
> var ref;
> function xy() {
> ref = cordova.InAppBrowser.open(...);
> }
> function ab() {
> ref.close();
> xy();
> }
> xy();
> ab();
> InAppBrowser instance stays opened with url "about:blank" in foreground and a second instance of InAppBrowser is launched in background.
> Should be: instance of InAppBrowser should be purged and closed instead of being held with "about:blank"



--
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