Bug 221161 customize domain endings (TLDs) for ctrl+enter etc completions of the URL bar
patch by hassman@czilla.cz r=varga sr=shaver git-svn-id: svn://10.0.0.236/trunk@165661 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e53b281b27
commit
19603d7d32
@ -1552,7 +1552,16 @@ function canonizeUrl(aTriggeringEvent, aPostDataRef)
|
||||
|
||||
else if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent &&
|
||||
aTriggeringEvent.ctrlKey)
|
||||
suffix = ".com/";
|
||||
{
|
||||
try {
|
||||
suffix = gPrefService.getCharPref("browser.fixup.alternate.suffix");
|
||||
if (suffix.charAt(suffix.length - 1) != '/')
|
||||
suffix += "/";
|
||||
}
|
||||
catch(e) {
|
||||
suffix = ".com/";
|
||||
}
|
||||
}
|
||||
|
||||
else if (aTriggeringEvent && 'shiftKey' in aTriggeringEvent &&
|
||||
aTriggeringEvent.shiftKey)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user