nsCOMPtr<nsIPref> prefs; if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefs))))
nsCOMPtr<nsIPrefBranch> prefBranch; if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefBranch))))
    virtual HRESULT STDMETHODCALLTYPE GoHome(void)    {        ATLTRACE(_T("IWebBrowserImpl::GoHome()\n"));        ENSURE_BROWSER_IS_VALID();        CComBSTR bstrUrl(L"http://home.netscape.com/");        // Find the home page stored in prefs        nsCOMPtr<nsIPref> prefs;        if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefs))))        {            nsXPIDLString homePage;            nsresult rv;            rv = prefs->GetLocalizedUnicharPref("browser.startup.homepage", getter_Copies(homePage));            if (rv == NS_OK)            {                bstrUrl = homePage.get();;            }        }        // Navigate to the home page        Navigate(bstrUrl, NULL, NULL, NULL, NULL);            return S_OK;    }