Aaron Rosen created CB-11453:
--------------------------------

             Summary: InAppBrowser executeScript() does not return when used 
concurrently
                 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 fires.  Even if i set the interval to be much slower I've been able to 
reproduce this. 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(values);
    }
});

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

                              
})



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to