You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Patrick Mueller (JIRA)" <ji...@apache.org> on 2013/04/29 02:14:15 UTC

[jira] [Resolved] (CB-3294) ajax.open('POST', '/mm', true) fails on iOS Safari with weinre

     [ https://issues.apache.org/jira/browse/CB-3294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Patrick Mueller resolved CB-3294.
---------------------------------

    Resolution: Duplicate

The failure is because strict mode is not supported, as near as I can tell from your description.
                
> ajax.open('POST', '/mm', true) fails on iOS Safari with weinre
> --------------------------------------------------------------
>
>                 Key: CB-3294
>                 URL: https://issues.apache.org/jira/browse/CB-3294
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: weinre
>    Affects Versions: 2.0.0
>         Environment: iPad iOS 6.1.3
>            Reporter: Axel Kittenberger
>            Assignee: Patrick Mueller
>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira