The following error message appeared in my JS console today: Error: [Exception... "Component returned failure code: 0x804b000f (NS_ERROR_IN_PROGRESS) [nsIXMLHttpRequest.mozBackgroundRequest]" nsresult: "0x804b000f (NS_ERROR_IN_PROGRESS)" location: "JS frame :: file:///home/myk/Projects/weave/modules/xmpp/transportLayer.js :: anonymous :: line 259" data: no] Source File: file:///home/myk/Projects/weave/modules/xmpp/transportLayer.js Line: 259 It looks like _doPost was called, reused this._request, and then tried to set mozBackgroundRequest on it (per my recent change), but this._request was "in progress", so that flag couldn't be set. There is at least one and perhaps two bugs here: 1. We should set mozBackgroundRequest when we first define this._request rather than every time _doPost uses it. 2. Perhaps _doPost needs to make sure that this._request isn't in use before trying to use it for something else.
Created attachment 326512 [details] [diff] [review] patch v1: fixes first problem This fixes the first problem. I'm not sure how to go about figuring out the second. Note: this patch also uses an instance getter and a closure to avoid storing the request object in a second property.
Setting milestone to 0.3.
These bugs need to be triaged, removing 0.3 milestone setting.
xmpp is currently dead (and hg removed).