mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 04:15:43 +00:00
Fix 177618 - Should not add www. and .com when www. already present
This commit is contained in:
parent
a4300fd5ec
commit
ea6890fadd
@ -1297,6 +1297,11 @@ function canonizeUrl(aTriggeringEvent)
|
||||
return;
|
||||
|
||||
var url = gURLBar.value;
|
||||
|
||||
// Prevent suffix when already exists www , http , /
|
||||
if (url.match(/^(www|http)|\/\s*$/i))
|
||||
return;
|
||||
|
||||
if (aTriggeringEvent && 'ctrlKey' in aTriggeringEvent &&
|
||||
aTriggeringEvent.ctrlKey && 'shiftKey' in aTriggeringEvent &&
|
||||
aTriggeringEvent.shiftKey)
|
||||
|
Loading…
Reference in New Issue
Block a user