mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 785415 - Remove unused getInnerWindowById from WebConsoleUtils.jsm. r=mihai.sucan
This commit is contained in:
parent
1bf739b2d2
commit
b1cf14bfca
@ -161,31 +161,6 @@ var WebConsoleUtils = {
|
||||
return content;
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets the window that has the given inner ID.
|
||||
*
|
||||
* @param integer aInnerId
|
||||
* @param nsIDOMWindow [aHintWindow]
|
||||
* Optional, the window object used to QueryInterface to
|
||||
* nsIDOMWindowUtils. If this is not given,
|
||||
* Services.wm.getMostRecentWindow() is used.
|
||||
* @return nsIDOMWindow|null
|
||||
* The window object with the given inner ID.
|
||||
*/
|
||||
getWindowByInnerId: function WCU_getWindowByInnerId(aInnerId, aHintWindow)
|
||||
{
|
||||
let someWindow = aHintWindow || Services.wm.getMostRecentWindow(null);
|
||||
let content = null;
|
||||
|
||||
if (someWindow) {
|
||||
let windowUtils = someWindow.QueryInterface(Ci.nsIInterfaceRequestor).
|
||||
getInterface(Ci.nsIDOMWindowUtils);
|
||||
content = windowUtils.getInnerWindowWithId(aInnerId);
|
||||
}
|
||||
|
||||
return content;
|
||||
},
|
||||
|
||||
/**
|
||||
* Abbreviates the given source URL so that it can be displayed flush-right
|
||||
* without being too distracting.
|
||||
|
Loading…
Reference in New Issue
Block a user