fluidinfo/fluidinfo.js — Issue #54: The XMLHTTPRequest handler for the Fluidinfo API should check status = 0
Author: terrycojones
Created: 2012-01-08 04:17:25+00:00
State: open

I'm not sure exactly what's triggering this, but I send bad credentials to Fluidinfo from the options page (chrome-extension://oaigjjdgkdnmnckmkodplpihbjokhbln) of a Chrome extension and the library calls the onSuccess handler even though the request fails. I can see it failing by attaching an onerror handler to the createXMLHTTPObject result. When the failure happens, the response has status 0. So I think that at least we should be testing that the response status is > 0.