nsCOMPtr<nsIPref> prefs; if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefs))))
nsCOMPtr<nsIPrefBranch> prefBranch; if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefBranch))))
    virtual HRESULT STDMETHODCALLTYPE GoSearch(void)    {        ATLTRACE(_T("IWebBrowserImpl::GoSearch()\n"));        ENSURE_BROWSER_IS_VALID();        CComBSTR bstrUrl(L"http://search.netscape.com/");        // Find the home page stored in prefs        nsCOMPtr<nsIPref> prefs;        if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefs))))        {            // TODO find and navigate to the search page stored in prefs            //      and not this hard coded address        }        // Navigate to the search page        Navigate(bstrUrl, NULL, NULL, NULL, NULL);            return S_OK;    }