Companion fix to earlier checkin for bug 197127. r=alecf, sr=heikki, a=asa. Do not allow typed data urls to enter global history.

This commit is contained in:
nisheeth%netscape.com 2006-09-14 06:03:15 +00:00
Родитель 51792e1814
Коммит 051728e2a3
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -262,7 +262,8 @@ function addToUrlbarHistory()
var url = entryToAdd.Value;
if (url.indexOf(" ") == -1) {
var fixedUpURI = gURIFixup.createFixupURI(url, 0);
gGlobalHistory.markPageAsTyped(fixedUpURI.spec);
if (!fixedupURI.schemeIs("data"))
gGlobalHistory.markPageAsTyped(fixedUpURI.spec);
}
}
catch(ex) {