Bug 861495 - Transplant getOuterWindowWithId from nsIDOMWindowUtils to a window-related service: webrtcUI.jsm. r=dolske

This commit is contained in:
Colby Russell 2013-05-07 12:34:21 -04:00
parent cde5563aff
commit ca8eb42667

View File

@ -57,10 +57,7 @@ this.webrtcUI = {
}
function getBrowserForWindowId(aWindowID) {
let someWindow = Services.wm.getMostRecentWindow(null);
let contentWindow = someWindow.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils)
.getOuterWindowWithId(aWindowID);
let contentWindow = Services.wm.getOuterWindowWithId(aWindowID);
return contentWindow.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIWebNavigation)
.QueryInterface(Ci.nsIDocShell)