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

InAppBrowser executeScript callback does not fire on certain urls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0, 4.0.0, 3.6.3
    • 4.0.0, 3.6.3
    • None
    • iOS, Android tested

    Description

      After running executeScript on certain pages, the provided callback never fires.

      I created a new project using cordova 4.0.0, and installed the InAppBrowser plugin via github url, version '0.6.1-dev'

      Then ran the following javascript:

      var ref = window.open('http://m.ralphlauren.com/product/index.jsp?productId=54946406', '_blank');
      ref.executeScript({code: '1+1'}, function(resp){console.log(resp)})
      

      The code does execute in the browser window. However the result is not returned via the callback.

      I tested this on iOS and Android, cordova 3.6.3 and InAppBrowser 0.5.4 as well. This code executes normally on most pages.

      Attachments

        Activity

          People

            Unassigned Unassigned
            redeemedfadi Fadi Eliya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: