cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Gill (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CB-3385) Issue with local xhr status code and plugman jsmodule stuff
Date Tue, 14 May 2013 18:49:16 GMT

    [ https://issues.apache.org/jira/browse/CB-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657362#comment-13657362
] 

Steve Gill edited comment on CB-3385 at 5/14/13 6:49 PM:
---------------------------------------------------------

Just pushed a fix for it. https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=f0d783f4477ca1433bafddeb58b1034198d35e91
                
      was (Author: stevegill):
    Just pushed a fix for it
                  
> 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

Mime
View raw message