cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Weber (JIRA)" <>
Subject [jira] [Created] (CB-5766) Can't close and then immediately re-open InAppBrowser
Date Fri, 10 Jan 2014 18:23:03 GMT
Jacob Weber created CB-5766:

             Summary: Can't close and then immediately re-open InAppBrowser
                 Key: CB-5766
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, iOS, Plugin InAppBrowser
    Affects Versions: 3.3.0
            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 ='', '_blank');{code}
- Try running any of the following, to close and then re-open the windiw:
-- {code:javascript}window.x.close();
window.x ='', '_blank');{code}
-- {code:javascript}window.x.addEventListener('exit', function() {
  window.x ='', '_blank');
-- {code:javascript}window.x.close();
setTimeout(function() {
  window.x ='', '_blank');
}, 1);{code}
- Using the last method with a timeout of 1000 works, but this seems unreliable.

This message was sent by Atlassian JIRA

View raw message