I have a dll which contains the piece of code behind to listen the
browser changing state.
static NS_DEFINE_IID(kDocLoaderServiceCID,
NS_DOCUMENTLOADER_SERVICE_CID);
class MyApp: public nsIMyApp,
public nsSupportsWeakReference,
public nsIWebProgressListener
{
public:
MyApp();
virtual ~MyApp();
NS_DECL_ISUPPORTS
NS_DECL_NSIMYAPP
NS_DECL_NSIWEBPROGRESSLISTENER
};
NS_IMETHODIMP MyApp:: MyFct()
{
nsCOMPtr<nsIWebProgress>
progress(do_GetService(kDocLoaderServiceCID));
if (progress)
progress->AddProgressListener(this,
nsIWebProgress::NOTIFY_STATE_ALL);
}
NS_IMETHODIMP MyApp::OnStateChange(nsIWebProgress* aWebProgress,
nsIRequest *aRequest, PRUint32 progressStateFlags, nsresult aStatus)
{
...
return NS_OK;
}
My dll belong to an Mozilla's extension. With Firefox and Thunderbird,
the application is listened and the extension work fine but the same
code with Mozilla and Netscape induce that these apllications aren't
listened so the extension don't work.
What is the difference between these Mozilla's applications which
induce that ?
And what could I do ?
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom