Bug 338864 - ctrl+enter doesn't work if the url starts with wwwp=Simon Bunzli <zeniko@gmail.com>r=gavin

This commit is contained in:
asqueella@gmail.com 2007-05-13 08:47:05 -07:00
Родитель f2f2261fbd
Коммит ff59936a79
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2330,7 +2330,7 @@ function canonizeUrl(aTriggeringEvent, aPostDataRef) {
// Since this function is called from handleURLBarCommand, which receives
// both mouse (from the go button) and keyboard events, we also make sure not
// to do the fixup unless we get a keyboard event, to match user expectations.
if (!/^(www|http)|\/\s*$/i.test(url) &&
if (!/^(www|https?)\b|\/\s*$/i.test(url) &&
(aTriggeringEvent instanceof KeyEvent)) {
#ifdef XP_MACOSX
var accel = aTriggeringEvent.metaKey;