Is there any way to figure out a firefox window's ID ("windowNumber") on mac OSX from within firefox? Either via JavaScript (unlikely) or XPCOM code. I can easily enumerate the NSWindows but I can't figure out a way to connect the dots between a firefox DOM and the platform specific window.
For clarity: I need some way to talk to the JavaScript in a specific window specified by windowNumber like you'd get from NSWindow. Some way to say, from the outside, run a function in THIS window.
Any ideas?