зеркало из https://github.com/mozilla/gecko-dev.git
Fix 177618 - Should not add www. and .com when www. already present
This commit is contained in:
Родитель
a4300fd5ec
Коммит
ea6890fadd
|
@ -1297,6 +1297,11 @@ function canonizeUrl(aTriggeringEvent)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var url = gURLBar.value;
|
var url = gURLBar.value;
|
||||||
|
|
||||||
|
// Prevent suffix when already exists www , http , /
|
||||||
|
if (url.match(/^(www|http)|\/\s*$/i))
|
||||||
|
return;
|
||||||
|
|
||||||
if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent &&
|
if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent &&
|
||||||
aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent &&
|
aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent &&
|
||||||
aTriggeringEvent.shiftKey)
|
aTriggeringEvent.shiftKey)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче