This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Command: getWindows()
Usage
repl> var windows = repl.getWindows()
Code
function getWindows() {
var windowEnum = Cc['@mozilla.org/appshell/window-mediator;1']
.getService(Ci.nsIWindowMediator).getEnumerator('');
var windows = [];
while(windowEnum.hasMoreElements())
windows.push(windowEnum.getNext());
return windows;
}
This function will cause the REPL to throw an error if you try to pass the resulting array back directly, but getWindows()[i] and getWindows().length work fine.






