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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user