Bug 1761432 - Part 2: Split out script load request state for when we require loading from source r=smaug

This is used when we explicitly don't want to load cached bytecode. It is
better served by a separate flag in the request than a state.

Differential Revision: https://phabricator.services.mozilla.com/D142042
This commit is contained in:
Jon Coppeard
2022-03-25 10:54:16 +00:00
parent 0ba898655d
commit df9edbebe8
4 changed files with 11 additions and 17 deletions

View File

@@ -294,7 +294,7 @@ nsresult ScriptLoadHandler::EnsureKnownDataType(
MOZ_ASSERT(req, "StreamLoader's request went away prematurely");
NS_ENSURE_SUCCESS(rv, rv);
if (mRequest->IsLoadingSource()) {
if (mRequest->mFetchSourceOnly) {
mRequest->SetTextSource();
TRACE_FOR_TEST(mRequest->mLoadContext->GetScriptElement(),
"scriptloader_load_source");