cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Betzinger (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9845) inappbrowser close function not working as intended, leaving instance of inappbrowser running
Date Fri, 23 Oct 2015 06:27:27 GMT

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

Sebastian Betzinger updated CB-9845:
------------------------------------
    Description: 
Code to reproduce:

var ref;

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

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

xy();

ab();


First InAppBrowser instance stays opened with url "about:blank" in foreground and a second
instance of InAppBrowser is launched in background with actual content. Using show() function
on second instance does not bring second inappbrowser to foreground, so every newly launched
instance is stuck in background.

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

Also using the Toolbar/Locationbar to close the inappbrowser leaves the instance on device.
This is a matter in lack of performance regarding long time running of the apps.

  was:
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"

Also using the Toolbar/Locationbar to close the inappbrowser leaves the instance on device.
This is a matter in lack of performance regarding long time running of the app.


> 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
>              Labels: 1.0.1, inappbrowser
>
> Code to reproduce:
> var ref;
> function xy() {
> ref = cordova.InAppBrowser.open(...);
> }
> function ab() {
> ref.close();
> xy();
> }
> xy();
> ab();
> First InAppBrowser instance stays opened with url "about:blank" in foreground and a second
instance of InAppBrowser is launched in background with actual content. Using show() function
on second instance does not bring second inappbrowser to foreground, so every newly launched
instance is stuck in background.
> Should be: instance of InAppBrowser should be purged and closed instead of being held
with "about:blank"
> Also using the Toolbar/Locationbar to close the inappbrowser leaves the instance on device.
This is a matter in lack of performance regarding long time running of the apps.



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


Mime
View raw message