cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Weber (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-5766) Can't close and then immediately re-open InAppBrowser
Date Fri, 10 Jan 2014 18:24:52 GMT

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

Jacob Weber updated CB-5766:
----------------------------

    Description: 
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.

  was:
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, but this seems unreliable.


> 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: 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 = 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.1.5#6160)

Mime
View raw message