mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout d5a6e28f7132 (bug 1115976) for network issues (bug 1116867)
This commit is contained in:
parent
6539a5091f
commit
6fdffaf18b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user