cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ricardo Rufino (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-11983) The back button hides the window but does not destroy
Date Fri, 07 Oct 2016 22:04:20 GMT
Ricardo Rufino created CB-11983:
-----------------------------------

             Summary: The back button hides the window but does not destroy
                 Key: CB-11983
                 URL: https://issues.apache.org/jira/browse/CB-11983
             Project: Apache Cordova
          Issue Type: Bug
          Components: Plugin InAppBrowser
    Affects Versions: 1.5.0
         Environment: Android
            Reporter: Ricardo Rufino
            Priority: Trivial


The back button "close"  the window but do not destroy ! See atached image.

I have a local index that opens external pages. When I click back and click on other links,
the windows accumulate, appearing "about: blank".

I tried to implement the code to reuse the same window, but still does not work.

{code}

if(w_ref == null)
    w_ref = cordova.InAppBrowser.open( url, '_blank', 'location=no'); // _self
else {
    w_ref.executeScript({
        code: "window.location = '"+url+"';"
    }, function () {
        w_ref.show();
    });
}
{/code}



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