You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2014/05/06 00:17:15 UTC

[jira] [Updated] (CB-5766) Can't close and then immediately re-open InAppBrowser

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

Shazron Abdullah updated CB-5766:
---------------------------------

    Component/s:     (was: Android)
                     (was: iOS)
    Environment: iOS, Android

> Can't close and then immediately re-open InAppBrowser
> -----------------------------------------------------
>
>                 Key: CB-5766
>                 URL: https://issues.apache.org/jira/browse/CB-5766
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 3.3.0
>         Environment: iOS, Android
>            Reporter: Jacob Weber
>            Priority: Minor
>
> When you close an InAppBrowser using the close() method, then try to open a new one right away, the new one doesn't appear.
> To reproduce:
> - Create a new project using the CLI, and run it in Xcode.
> - Debug the web view in Safari.
> - Run in the console: {code:javascript}window.x = window.open('http://www.google.com', '_blank');{code}
> - Try running any of the following, to close and then re-open the windiw:
> -- {code:javascript}window.x.close();
> window.x = window.open('http://www.apple.com', '_blank');{code}
> -- {code:javascript}window.x.addEventListener('exit', function() {
>   window.x = window.open('http://www.apple.com', '_blank');
> });
> window.x.close();{code}
> -- {code:javascript}window.x.close();
> setTimeout(function() {
>   window.x = window.open('http://www.apple.com', '_blank');
> }, 1);{code}
> Using the last method with a timeout of 1000 works for me, but this seems unreliable.
> I'm seeing the same problem on Android, although I haven't tried debugging it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)