Bug 331522. By default, do not allow keyword searches when navigating to URLs; modify browser UI code to enable keyword searches only on selected URL input mechanisms (e.g., typed into the URL bar). r+sr=darin,r=mconnor

This commit is contained in:
roc+@cs.cmu.edu
2006-04-03 23:17:51 +00:00
parent 307dec6a56
commit 6831bb6020
14 changed files with 106 additions and 57 deletions

View File

@@ -958,7 +958,7 @@ nsresult nsWebShell::EndPageLoad(nsIWebProgress *aProgress,
//
// First try keyword fixup
//
if (aStatus == NS_ERROR_UNKNOWN_HOST)
if (aStatus == NS_ERROR_UNKNOWN_HOST && mAllowKeywordFixup)
{
PRBool keywordsEnabled = PR_FALSE;