Bug 1077168 - Have RemoteWebProgress dispatch DOMWindowID's to nsIWebProgressListener's. r=felipe.

--HG--
extra : rebase_source : 5714b2711661bcf029096d870de5fb7cda83cdc6
This commit is contained in:
Mike Conley 2015-02-10 12:28:31 -05:00
parent 6fc217517d
commit 92b15a3194
2 changed files with 5 additions and 2 deletions

View File

@ -67,7 +67,8 @@ let WebProgressListener = {
aWebProgress = {
isTopLevel: aWebProgress.isTopLevel,
isLoadingDocument: aWebProgress.isLoadingDocument,
loadType: aWebProgress.loadType
loadType: aWebProgress.loadType,
DOMWindowID: aWebProgress.DOMWindowID,
};
}

View File

@ -35,6 +35,7 @@ function RemoteWebProgress(aManager, aIsTopLevel) {
this._isLoadingDocument = false;
this._DOMWindow = null;
this._DOMWindowID = 0;
this._isTopLevel = aIsTopLevel;
this._loadType = 0;
}
@ -54,7 +55,7 @@ RemoteWebProgress.prototype = {
get isLoadingDocument() { return this._isLoadingDocument },
get DOMWindow() { return this._DOMWindow; },
get DOMWindowID() { return 0; },
get DOMWindowID() { return this._DOMWindowID; },
get isTopLevel() { return this._isTopLevel },
get loadType() { return this._loadType; },
@ -147,6 +148,7 @@ RemoteWebProgressManager.prototype = {
// Update the actual WebProgress fields.
webProgress._isLoadingDocument = json.webProgress.isLoadingDocument;
webProgress._DOMWindow = objects.DOMWindow;
webProgress._DOMWindowID = json.webProgress.DOMWindowID;
webProgress._loadType = json.webProgress.loadType;
}