cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-5766) Can't close and then immediately re-open InAppBrowser
Date Mon, 05 May 2014 22:17:15 GMT

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

Mime
View raw message