forked from mirrors/gecko-dev
Bug 1899172 - Part 6: Consistently use ScriptLoadContext::GetParserCreated. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D211906
This commit is contained in:
parent
a8b92db6dc
commit
dd0d1332b5
1 changed files with 1 additions and 3 deletions
|
|
@ -3545,9 +3545,7 @@ void ScriptLoader::HandleLoadError(ScriptLoadRequest* aRequest,
|
|||
|
||||
// Ensure that we treat aRequest->GetScriptLoadContext()->GetScriptElement()
|
||||
// as our current parser-inserted script while firing onerror on it.
|
||||
MOZ_ASSERT(aRequest->GetScriptLoadContext()
|
||||
->GetScriptElement()
|
||||
->GetParserCreated());
|
||||
MOZ_ASSERT(aRequest->GetScriptLoadContext()->GetParserCreated());
|
||||
nsCOMPtr<nsIScriptElement> oldParserInsertedScript =
|
||||
mCurrentParserInsertedScript;
|
||||
mCurrentParserInsertedScript =
|
||||
|
|
|
|||
Loading…
Reference in a new issue