You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Steve Gill (JIRA)" <ji...@apache.org> on 2013/05/14 03:28:13 UTC

[jira] [Created] (CB-3385) Issue with local xhr status code and plugman jsmodule stuff

Steve Gill created CB-3385:
------------------------------

             Summary: Issue with local xhr status code and plugman jsmodule stuff
                 Key: CB-3385
                 URL: https://issues.apache.org/jira/browse/CB-3385
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaJS, Plugman
    Affects Versions: Master
            Reporter: Steve Gill
            Assignee: Steve Gill
             Fix For: 2.8.0


Issue is with plugin_loader.js script. It makes a local xhr request to get the contents of cordova_plugins.json. It returns successfully, but with the status code 0 instead of 200. After doing some research (https://groups.google.com/forum/?fromgroups=#!topic/phonegap/KjHoMlLyoUA) I found out that local xhr on the file protocol returns 0. 

plugin_loader checks for status code 200 at https://github.com/apache/cordova-js/blob/master/lib/scripts/plugin_loader.js#L103

I have been trying to install the javascript stuff for device motion and couldn't understand why navigator.accelerometer wasn't getting clobbered. Fixing this solved the problem. 

I will look into pushing a fix for this tomorrow.

--
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