On Apr 12, 4:01 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Apr 12, 5:01 am, "timeless" <[EMAIL PROTECTED]> wrote: > > > > > Unfortunately not. There's a bug in bugzilla about this. I filed it. > > It's a pretty big blocker for doing anything useful. > > Indeed :( > > I have just spent a few hours following this idea: since instances of > my component each have a unique identifier which is accessible through > window.myObject.getIdentifier(), why not iterate through the open > windows checking for windows with window.myObject where > window.myObject.getIdentifier() == this.getIdentifier() > > Firstly, I tried nsIWindowMediator to get the browser windows and then > iterating over their tabs, but I can't get to the full 'window' object > using this method, only subset objects (as far as I can see). Next I > tried nsIWindowWatcher.getWindowEnumerator(), and I can get the > 'window' object (once I QI to nsIDOMWindow). However, checking for > window.myObject causes window.myObject to be created for that window > if it didn't exist previously, and none of them seem to have matching > IDs anyway (!) > > This is exasperating...
I'd suggest you find my bug and work on getting it committed to cvs. I'm pretty sure it had a fairly complete patch and just needed some review love. _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
