You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Ricardo Rufino (JIRA)" <ji...@apache.org> on 2016/10/07 22:04:20 UTC

[jira] [Created] (CB-11983) The back button hides the window but does not destroy

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