Crash opening "new composer window" to bogus location, after "this type of page can't be edited" dialog
r=sfraser
sr=kin
sr=rpotts
This commit is contained in:
anthonyd%netscape.com 2000-10-13 05:06:02 +00:00
Родитель ba889ecdf3
Коммит 308190d048
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1001,8 +1001,11 @@ nsWebShell::OnEndDocumentLoad(nsIDocumentLoader* loader,
aStatus == NS_ERROR_NET_TIMEOUT)
{
PRBool keywordsEnabled = PR_FALSE;
NS_ENSURE_SUCCESS(mPrefs->GetBoolPref("keyword.enabled", &keywordsEnabled),
NS_ERROR_FAILURE);
if(mPrefs)
{
NS_ENSURE_SUCCESS(mPrefs->GetBoolPref("keyword.enabled", &keywordsEnabled),
NS_ERROR_FAILURE);
}
// we should only perform a keyword search under the following conditions:
// (0) Pref keyword.enabled is true