Backout d5a6e28f7132 (bug 1115976) for network issues (bug 1116867)

This commit is contained in:
J. Ryan Stinnett 2015-01-09 17:16:58 -06:00
parent 6539a5091f
commit 6fdffaf18b

View File

@ -85,20 +85,6 @@ NetworkResponseListener.prototype = {
throw Cr.NS_ERROR_NO_INTERFACE;
},
/**
* Forward notifications for interfaces this object implements, in case other
* objects also implemented them.
*/
_forwardNotification(iid, method, args) {
if (!this._wrappedNotificationCallbacks) {
return;
}
try {
let impl = this._wrappedNotificationCallbacks.getInterface(iid);
impl[method].apply(impl, args);
} catch(e if e.result == Cr.NS_ERROR_NO_INTERFACE) {}
},
/**
* This NetworkResponseListener tracks the NetworkMonitor.openResponses object
* to find the associated uncached headers.
@ -230,14 +216,9 @@ NetworkResponseListener.prototype = {
*/
onProgress: function(request, context, progress, progressMax) {
this.transferredSize = progress;
// Need to forward as well to keep things like Download Manager's progress
// bar working properly.
this._forwardNotification(Ci.nsIProgressEventSink, 'onProgress', arguments);
},
onStatus: function () {
this._forwardNotification(Ci.nsIProgressEventSink, 'onStatus', arguments);
},
onStatus: function () {},
/**
* Find the open response object associated to the current request. The