Closed Bug 703701 Opened 14 years ago Closed 14 years ago

fetching of manifests in owa extension

Categories

(Web Apps :: Extension, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 694643

People

(Reporter: ianbicking, Unassigned)

Details

function fetchManifest(url, cb) { dump("APPS | api.install.fetchManifest | Fetching manifest from " + url + "\n"); // contact our server to retrieve the URL let xhr = Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]. createInstance(Ci.nsIXMLHttpRequest); xhr.open("GET", url, true); xhr.onreadystatechange = function(aEvt) { if (xhr.readyState == 4) { if (xhr.status == 200) { dump("APPS | api.install.fetchManifest | Got manifest (200) " + xhr.responseText.length + " bytes\n"); cb(xhr.responseText, xhr.getResponseHeader('Content-Type')); } else { dump("Failed to get manifest (" + xhr.status + ")\n"); cb(null); } } }; xhr.send(null); } This is the code, basically I worry that this isn't behind a try / catch, as well as a timeout behind this call to abort xhr.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Indeed a duplicate.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.