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

InAppBrowser calls incorrect callback on WP8

    XMLWordPrintableJSON

Details

    Description

      Due to current implementation InAppBrowser does not save initial callback id when you performed 'open' operation, but uses the latest command callback instead. So if you invoke any other command like executeScript after, location chanegs events will be broken. It will start using executeScript callback is instead of original one.

      For example,

      var loginWindow = window.open(someUrl, "_blank", "location=no");
      loginWindow.addEventListener('loadstart', loadEventHandler);
      loginWindow.addEventListener('loadstop', loadEventHandler);

      loginWindow.executeScript(..);

      The last call will break location change notifications.

      Attachments

        Activity

          People

            sgrebnov Sergey Grebnov
            sgrebnov Sergey Grebnov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: