Don't bother loading scripts from the network when scripts are disabled. Bug

66857, r=sicking, sr=jst
This commit is contained in:
bzbarsky%mit.edu 2003-07-24 23:22:45 +00:00
Родитель 1c63b867c5
Коммит 92f086becd
1 изменённых файлов: 2 добавлений и 1 удалений

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

@ -645,7 +645,8 @@ nsHTMLScriptElement::GetLineNumber(PRUint32* aLineNumber)
void
nsHTMLScriptElement::MaybeProcessScript()
{
if (mIsEvaluated || mEvaluating || !mDocument || !mParent) {
if (mIsEvaluated || mEvaluating || !mDocument || !mParent ||
!mDocument->IsScriptEnabled()) {
return;
}