Bug 1899172 - Part 3: Add ScriptLoadContext::GetHintCharset. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D211903
This commit is contained in:
@@ -807,8 +807,7 @@ nsresult ScriptLoader::PrepareHttpRequestAndInitiatorType(
|
||||
nsAutoString hintCharset;
|
||||
if (!aRequest->GetScriptLoadContext()->IsPreload() &&
|
||||
aRequest->GetScriptLoadContext()->GetScriptElement()) {
|
||||
aRequest->GetScriptLoadContext()->GetScriptElement()->GetScriptCharset(
|
||||
hintCharset);
|
||||
aRequest->GetScriptLoadContext()->GetHintCharset(hintCharset);
|
||||
} else if (aCharsetForPreload.isSome()) {
|
||||
hintCharset = aCharsetForPreload.ref();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user