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

Fix InAppBrowser executeScript crash on Windows if no data returned

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.0
    • None
    • Cordova 5.0.0, Windows 3.8.1, InAppBrowser 1.0.0

    Description

      The executeScript function can return data across the inteface.
      When using Windows Phone 8.1 if no data is returned the current code will except, crashing the app.
      I have found the following code to solve the problem
      In file InAppBrowserProxy.js
      Change lines 250 and 272 from
      var result = [e.target.result];
      to
      var result = [];
      if(e && e.target) result = [e.target.result];

      Attachments

        Activity

          People

            Unassigned Unassigned
            jml John Little
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: