cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Rosen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-11453) InAppBrowser executeScript() does not return when used concurrently on iphone
Date Sun, 19 Jun 2016 19:39:05 GMT

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

Aaron Rosen updated CB-11453:
-----------------------------
    Description: 
While using the cordova-plugin-inappbroswer version 1.4.0 I noticed that if I make concurrent
requests with win.executeScript() that some times a callback never get called.  I've been
able to reproduce this problem on iOS and not Android though.   

For example:

var win = window.open( "https://google.com", "_blank");
win.addEventListener( "loadstop", function() {

var loop = setInterval(function() {
  win.executeScript({
       code: "localStorage.getItem( 'foo' )"
    },function( values ) {
       console.log("Only seen once...");
       console.log(values);
    }
});
                             
var loop = setInterval(function() {
  win.executeScript({
       code: "localStorage.getItem( 'bar' )"
    },function( values ) {
       console.log("Only seen once...");

       console.log(values);
    }
});
                              
})

  was:
While using the cordova-plugin-inappbroswer version 1.4.0 I noticed that if I make concurrent
requests with win.executeScript() that some times a callback never get called.  I've been
able to reproduce this problem on iOS and not Android though.   

For example:

var win = window.open( "https://google.com", "_blank");
win.addEventListener( "loadstop", function() {

var loop = setInterval(function() {
  win.executeScript({
       code: "localStorage.getItem( 'foo' )"
    },function( values ) {
       console.log("Only seen once...")
       console.log(values);
    }
});
                             
var loop = setInterval(function() {
  win.executeScript({
       code: "localStorage.getItem( 'bar' )"
    },function( values ) {
       console.log("Only seen once...")

       console.log(values);
    }
});
                              
})


> InAppBrowser executeScript() does not return when used concurrently on iphone
> -----------------------------------------------------------------------------
>
>                 Key: CB-11453
>                 URL: https://issues.apache.org/jira/browse/CB-11453
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Aaron Rosen
>
> While using the cordova-plugin-inappbroswer version 1.4.0 I noticed that if I make concurrent
requests with win.executeScript() that some times a callback never get called.  I've been
able to reproduce this problem on iOS and not Android though.   
> For example:
> var win = window.open( "https://google.com", "_blank");
> win.addEventListener( "loadstop", function() {
> var loop = setInterval(function() {
>   win.executeScript({
>        code: "localStorage.getItem( 'foo' )"
>     },function( values ) {
>        console.log("Only seen once...");
>        console.log(values);
>     }
> });
>                              
> var loop = setInterval(function() {
>   win.executeScript({
>        code: "localStorage.getItem( 'bar' )"
>     },function( values ) {
>        console.log("Only seen once...");
>        console.log(values);
>     }
> });
>                               
> })



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message