Vaibhav Gade
Vaibhav Gade

Reputation: 143

Firefox Popup window event

I am writing a Firefox extension using XPCOM C++.

I want to get notified when the popup window (like we see while browsing www.rediffmail.com) is opening.

How do I catch this event? Does anybody knows how to do it?

Thanks for your help.

Upvotes: 1

Views: 406

Answers (1)

Nickolay
Nickolay

Reputation: 32063

"like we see while browsing www.rediffmail.com" is a poor definition, so I'm going to assume you're talking about regular popup windows (with title bar, etc), not a Javascript-implemented in-tab dialog, and not new pages that open in new tabs.

There are notifications fired when new windows are open (or you could just overlay Firefox's browser.xul to inject your code).

There's also a PopupWindow DOM event, not documented, as far as I can see.

Upvotes: 1

Related Questions