Bill Filler wrote:
Are there any events I can register for that will allow my embedded
application to detect when a popup window has been blocked? I want to be
able to notify the end user when this happens. Thanks for any help.
>
> There's a DOMPopupBlocked event fired, yes. The event object
implements
> nsIDOMPopupBlockedEvent.
>
> -Boris
Thanks Boris. I have a follow up question. Currently I wait till the page is
done loading so I can get the Document, then I get the nsIDOMEventTarget
from the Document and call nsIDOMEventTarget::AddEventListener() registering
for the "DOMPopupBlocked" event. This works as my listener is notified for
events that happen after the load is complete, but I am not getting
DOMPopupBlocked events that occur before the page load is complete
(obviously because I'm not registering until the load is complete).
Question: Is there another programatic way to register an event listener for
the DOMPopupBlockedEvents such that I don't have to wait for the page load
to complete and can report the events as they happen during the page load? I
know it must be possible as Firefox does it, but I'm just not sure how to do
it. Thanks for any help.
Bill
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding