зеркало из https://github.com/mozilla/pjs.git
94903 - Don't forgot to resume parsing if loading external js fails.
r=heikki,sr=jst
This commit is contained in:
Родитель
6b904380b3
Коммит
f1f32fab65
|
@ -4875,6 +4875,13 @@ HTMLContentSink::ScriptAvailable(nsresult aResult,
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
mScriptElements.RemoveElementAt(count-1);
|
mScriptElements.RemoveElementAt(count-1);
|
||||||
|
|
||||||
|
if(mParser && aWasPending){
|
||||||
|
// Loading external script failed!. So, resume
|
||||||
|
// parsing since the parser got blocked when loading
|
||||||
|
// external script. - Ref. Bug: 94903
|
||||||
|
mParser->ContinueParsing();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
|
@ -1748,6 +1748,13 @@ nsXMLContentSink::ScriptAvailable(nsresult aResult,
|
||||||
|
|
||||||
if (NS_FAILED(aResult)) {
|
if (NS_FAILED(aResult)) {
|
||||||
mScriptElements.RemoveElementAt(count-1);
|
mScriptElements.RemoveElementAt(count-1);
|
||||||
|
|
||||||
|
if(mParser && aWasPending){
|
||||||
|
// Loading external script failed!. So, resume
|
||||||
|
// parsing since the parser got blocked when loading
|
||||||
|
// external script. - Ref. Bug: 94903
|
||||||
|
mParser->ContinueParsing();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче