Bug 902048 - Use nsIWindowMediator getOuterWindowWithId in WebappsUI.jsm. r=felipc

This commit is contained in:
Marco Castelluccio 2013-08-08 13:31:58 -04:00
parent 8596ce000e
commit 73d1252df1

View File

@ -50,9 +50,7 @@ this.webappsUI = {
_getWindowForId: function(aId) {
let someWindow = Services.wm.getMostRecentWindow(null);
return someWindow && someWindow.QueryInterface(Ci.nsIInterfaceRequestor)
.getInterface(Ci.nsIDOMWindowUtils)
.getOuterWindowWithId(aId);
return someWindow && Services.wm.getOuterWindowWithId(aId);
},
openURL: function(aUrl, aOrigin) {