Bug 617838: Don't run the URI classifier on javascript: URIs. r=bz a=a

This commit is contained in:
Chris Jones 2011-01-04 10:40:54 -06:00
Родитель caa43e4cf5
Коммит e5e2ea881c
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -894,7 +894,12 @@ nsJSChannel::SetLoadFlags(nsLoadFlags aLoadFlags)
}
bogusLoadBackground = !loadGroupIsBackground;
}
// Classifying a javascript: URI doesn't help us, and requires
// NSS to boot, which we don't have in content processes. See
// https://bugzilla.mozilla.org/show_bug.cgi?id=617838.
aLoadFlags &= ~LOAD_CLASSIFY_URI;
// Since the javascript channel is never the actual channel that
// any data is loaded through, don't ever set the
// LOAD_DOCUMENT_URI flag on it, since that could lead to two