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

ajax.open('POST', '/mm', true) fails on iOS Safari with weinre

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0.0
    • None
    • None
    • iPad iOS 6.1.3

    Description

      Wanting to debug my web application on the iPad.

      However, including the weinre target script makes ajax.open fail. It works on the desktop tough.

      Following error is catched by my code and printed on console:

      Internal failure, TypeError: Function.caller used to retrieve strict caller
      file: undefined
      line: undefined
      stack: getTrace@http://192.168.1.102:8080/target/target-script-min.js:1033
      StackTrace@http://192.168.1.102:8080/target/target-script-min.js:1008
      before@http://192.168.1.102:8080/target/target-script-min.js:2868
      callBeforeHooks@http://192.168.1.102:8080/target/target-script-min.js:561
      open@http://192.168.1.102:8080/target/target-script-min.js:545
      _ajax@http://192.168.1.102:8833/shell/iface.js:100

      shell/iface.js looks like this:

      var ajax =
      new XMLHttpRequest( );

      ajax.open( // <-- this is line 100
      'POST',
      '/mm',
      true
      );

      I tried to remove "use strict" from my code, but it makes no difference. Removing the weinre target script makes this part of the code work again.

      weinre --help
      usage: weinre [options]
      version: 2.0.0-pre-HA5N9T49

      Attachments

        Issue Links

          Activity

            People

              pmuellr Patrick Mueller
              axkibe Axel Kittenberger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: