Hi,

I have built mozilla 1.7.3 for mips and for x86, and am using the "viewer" 
test program.
 
The x86 viewer works OK, but the mips version segfaults inside 
nsWebBrowser::GetContentDOMWindow :

NS_IMETHODIMP nsWebBrowser::GetContentDOMWindow(nsIDOMWindow **_retval)
{
        NS_ENSURE_STATE(mDocShell);
        nsresult rv = NS_OK;
        nsCOMPtr<nsIDOMWindow> retval = do_GetInterface(mDocShell, &rv);
        if (NS_FAILED(rv)) return rv;
        *_retval = retval;
        NS_ADDREF(*_retval);
        return rv;
}

The line "nsCOMPtr<nsIDOMWindow> retval = do_GetInterface(mDocShell, &rv);" is 
causing the segfault. If this line is replaced with :

                nsCOMPtr<nsIDOMWindow> retval(do_QueryInterface(mDocShell)) ;

the segfault happens in NS_ADDREF(*_retval) instead...

What part of xpcom should I start looking into ?

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

Reply via email to