Feynman wrote:
> Thanks for response, I tested another solution, but it does not work. 
> MyEventListener::PageShow is never called

What made you think it should be called?  It shouldn't, given your code.

> class MyEventListener : public nsIDOMPageTransitionListener

Of course you don't actually QI to nsIDOMPageTransitionListener, which is why 
your PageShow is not being called.

> MyEventListener::HandleEvent(nsIDOMEvent* aDOMEvent)

This _is_ being called, right?

> webBrowser->GetContentDOMWindow(&domWindow);
> 
> rv = domWindow->GetDocument(&domDoc);

These still leak.  You really should fix that.

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

Reply via email to