зеркало из https://github.com/mozilla/gecko-dev.git
Don't bother loading scripts from the network when scripts are disabled. Bug
66857, r=sicking, sr=jst
This commit is contained in:
Родитель
1c63b867c5
Коммит
92f086becd
|
@ -645,7 +645,8 @@ nsHTMLScriptElement::GetLineNumber(PRUint32* aLineNumber)
|
|||
void
|
||||
nsHTMLScriptElement::MaybeProcessScript()
|
||||
{
|
||||
if (mIsEvaluated || mEvaluating || !mDocument || !mParent) {
|
||||
if (mIsEvaluated || mEvaluating || !mDocument || !mParent ||
|
||||
!mDocument->IsScriptEnabled()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче