Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
3.3.0
-
None
-
iOS, Android
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:
window.x = window.open('http://www.google.com', '_blank');
- Try running any of the following, to close and then re-open the windiw:
window.x.close(); window.x = window.open('http://www.apple.com', '_blank');
window.x.addEventListener('exit', function() { window.x = window.open('http://www.apple.com', '_blank'); }); window.x.close();
window.x.close(); setTimeout(function() { window.x = window.open('http://www.apple.com', '_blank'); }, 1);
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.