mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
fix for bug # 55750
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:
parent
5475b63c24
commit
74c4c54da2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user