You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (Jira)" <ji...@apache.org> on 2020/06/24 14:44:00 UTC
[jira] [Closed] (CB-6230) InAppBrowser closes after opening,
instead of before
[ https://issues.apache.org/jira/browse/CB-6230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
jcesarmobile closed CB-6230.
----------------------------
Resolution: Cannot Reproduce
closing as can not reproduce
if you are still facing this issue, please, report it on github https://github.com/apache/cordova-plugin-inappbrowser/issues
> InAppBrowser closes after opening, instead of before
> ----------------------------------------------------
>
> Key: CB-6230
> URL: https://issues.apache.org/jira/browse/CB-6230
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-plugin-inappbrowser
> Affects Versions: 3.4.0, 3.5.0
> Environment: Android 4.3, Galaxy Nexus
> Reporter: Jacob Weber
> Assignee: Joey Robert Bowser
> Priority: Minor
> Labels: Android, Triaged
>
> In Cordova 3.4, with InAppBrowser 0.3.3, create a new project using the CLI. In www/js/index.js, make the following change:
> {noformat}
> onDeviceReady: function() {
> app.receivedEvent('deviceready');
> document.addEventListener('click', function() {
> if (window.myWindow) window.myWindow.close();
> window.myWindow = window.open('http://www.google.com', "_blank");
> });
> },
> {noformat}
> Tap the page once, and a browser will appear. Close the browser. Then tap the app again. This time the browser will appear for a split second, then close right away. The close() call seems to be happening after the subsequent open() call, instead of before it.
> This was working in 3.3, with InAppBrowser 0.2.5.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org