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...

_______________________________________________
dev-tech-xpcom mailing list
[EMAIL PROTECTED]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to