mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Backed out changeset 84c03250d7f6 (bug 1106936)
This commit is contained in:
parent
49761c3100
commit
de9c316b20
@ -108,19 +108,6 @@ let WebProgressListener = {
|
||||
},
|
||||
|
||||
onProgressChange: function onProgressChange(aWebProgress, aRequest, aCurSelf, aMaxSelf, aCurTotal, aMaxTotal) {
|
||||
let json = this._setupJSON(aWebProgress, aRequest);
|
||||
let objects = this._setupObjects(aWebProgress);
|
||||
|
||||
json.curSelf = aCurSelf;
|
||||
json.maxSelf = aMaxSelf;
|
||||
json.curTotal = aCurTotal;
|
||||
json.maxTotal = aMaxTotal;
|
||||
|
||||
sendAsyncMessage("Content:ProgressChange", json, objects);
|
||||
},
|
||||
|
||||
onProgressChange64: function onProgressChange(aWebProgress, aRequest, aCurSelf, aMaxSelf, aCurTotal, aMaxTotal) {
|
||||
this.onProgressChange(aWebProgress, aRequest, aCurSelf, aMaxSelf, aCurTotal, aMaxTotal);
|
||||
},
|
||||
|
||||
onLocationChange: function onLocationChange(aWebProgress, aRequest, aLocationURI, aFlags) {
|
||||
@ -164,12 +151,8 @@ let WebProgressListener = {
|
||||
sendAsyncMessage("Content:SecurityChange", json, objects);
|
||||
},
|
||||
|
||||
onRefreshAttempted: function onRefreshAttempted(aWebProgress, aURI, aDelay, aSameURI) {
|
||||
},
|
||||
|
||||
QueryInterface: function QueryInterface(aIID) {
|
||||
if (aIID.equals(Ci.nsIWebProgressListener) ||
|
||||
aIID.equals(Ci.nsIWebProgressListener2) ||
|
||||
aIID.equals(Ci.nsISupportsWeakReference) ||
|
||||
aIID.equals(Ci.nsISupports)) {
|
||||
return this;
|
||||
|
@ -76,7 +76,6 @@ function RemoteWebProgressManager (aBrowser) {
|
||||
this._browser.messageManager.addMessageListener("Content:LocationChange", this);
|
||||
this._browser.messageManager.addMessageListener("Content:SecurityChange", this);
|
||||
this._browser.messageManager.addMessageListener("Content:StatusChange", this);
|
||||
this._browser.messageManager.addMessageListener("Content:ProgressChange", this);
|
||||
}
|
||||
|
||||
RemoteWebProgressManager.prototype = {
|
||||
@ -209,10 +208,6 @@ RemoteWebProgressManager.prototype = {
|
||||
case "Content:StatusChange":
|
||||
this._callProgressListeners("onStatusChange", webProgress, request, json.status, json.message);
|
||||
break;
|
||||
|
||||
case "Content:ProgressChange":
|
||||
this._callProgressListeners("onProgressChange", webProgress, request, json.curSelf, json.maxSelf, json.curTotal, json.maxTotal);
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user