Feynman wrote:
> webBrowser->GetContentDOMWindow(&domWindow);
> rv = domWindow->GetDocument(&domDoc);
Those leak, but that might not matter here.
> rv = target->AddEventListener(NS_LITERAL_STRING("pageload"), listener,
> PR_FALSE);
There is no "pageload" event.
Note that you want to be adding your listener to the chrome event listener for
the window. Attaching a listener to a document won't tell you anything about
other documents loading...
-Boris
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding