mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-12 06:52:25 +00:00
Bug 861495 - Transplant getOuterWindowWithId from nsIDOMWindowUtils to a window-related service: webrtcUI.jsm. r=dolske
This commit is contained in:
parent
cde5563aff
commit
ca8eb42667
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user