Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11453

InAppBrowser executeScript() does not return when used concurrently on iphone

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      iOS

      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);
          }
      });
                                    
      })
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              arosen Aaron Rosen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: