Backed out changeset 18d45aa984d6 (bug 1355161)

This commit is contained in:
Sebastian Hengst
2017-04-14 23:39:23 +02:00
parent 42670ceca0
commit 4cd95d4a02
100 changed files with 244 additions and 213 deletions

View File

@@ -232,7 +232,7 @@ HashCompleter.prototype = {
// Start off this request. Without dispatching to a thread, every call to
// complete makes an individual HTTP request.
Services.tm.dispatchToMainThread(this);
Services.tm.currentThread.dispatch(this, Ci.nsIThread.DISPATCH_NORMAL);
},
// This is called after several calls to |complete|, or after the
@@ -273,7 +273,7 @@ HashCompleter.prototype = {
// gethashUrl and fetch the next pending request, if there is one.
finishRequest: function(url, aStatus) {
this._backoffs[url].noteServerResponse(aStatus);
Services.tm.dispatchToMainThread(this);
Services.tm.currentThread.dispatch(this, Ci.nsIThread.DISPATCH_NORMAL);
},
// Returns true if we can make a request from the given url, false otherwise.