You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jacob Weber (JIRA)" <ji...@apache.org> on 2014/01/10 19:23:03 UTC
[jira] [Created] (CB-5766) Can't close and then immediately re-open
InAppBrowser
Jacob Weber created CB-5766:
-------------------------------
Summary: 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, but this seems unreliable.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)