[EMAIL PROTECTED] wrote:
> It seems that the method ShouldLoad is not declared same for FireFox
as
> it is for Mozilla. Here are the declarations:
>
> FireFox:
>
> NS_IMETHODIMP CMyClass::ShouldLoad(PRUint32 aContentType, nsIURI
> *aContentLocation, nsIURI *aRequestOrigin, nsISupports *aContext,
const
> nsACString & aMimeTypeGuess, nsISupports *aExtra, PRInt16 *_retval)
>
> Mozilla:
>
> NS_IMETHODIMP CMyClass::ShouldLoad(PRInt32 contentType, nsIURI
> *contentLocation, nsISupports *ctxt, nsIDOMWindow *window, PRBool
> *_retval)
>
> Basically, a DLL that implements ShouldLoad for one of these will not
> work for the other.  I assume that these are the foibles of using a
> non-frozen interface.
>
> Hope this helps
>
> Vince

Hi Vince

Thanks for this tip. I finally downloaded the idl file
nsIContentPolicy.idl for firefox and compiled. Now my ShouldLoad
function works.

Thanks once again

_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to