Don't error out if keyword.enabled is just not set. Bug 229083, patch by
Patrick McCormick <patrick@meer.net>, r+sr=bzbarsky git-svn-id: svn://10.0.0.236/trunk@152206 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -799,10 +799,8 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
|
||||
{
|
||||
PRBool keywordsEnabled = PR_FALSE;
|
||||
|
||||
if(mPrefs) {
|
||||
rv = mPrefs->GetBoolPref("keyword.enabled", &keywordsEnabled);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
if (mPrefs && NS_FAILED(mPrefs->GetBoolPref("keyword.enabled", &keywordsEnabled)))
|
||||
keywordsEnabled = PR_FALSE;
|
||||
|
||||
nsCAutoString host;
|
||||
url->GetHost(host);
|
||||
|
||||
Reference in New Issue
Block a user