dc wrote:
Now, this solving this problem, lead to another: is there any way we can detect if the request (and HTML itself) comes from the top browser window and not from a frame or iframe inside of it?

You're passed the document in question if you're using a parser data listener, aren't you?

So you can check whether the corresponding window has a parent equal to 
itself...

Note that when we finally start supporting parsing HTML through things like XMLHttpRequest and DOMParser you might get false positives here.

-Boris
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to