mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-16 06:45:42 +00:00
Bug 902048 - Use nsIWindowMediator getOuterWindowWithId in WebappsUI.jsm. r=felipc
This commit is contained in:
parent
8596ce000e
commit
73d1252df1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user