commit 161c6ab8c0b0fa22465a36f53d160f3b996546ee
parent 14962d82fd6c226cb038781bfafb5bf19b51a92f
Author: Lando <lando@lando.test>
Date: Fri, 14 Nov 2025 15:56:06 +0000
Bug 1360870, 1989386, 1990925, 1995558: apply code formatting via Lando
# ignore-this-changeset
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dom/workers/ScriptLoader.cpp b/dom/workers/ScriptLoader.cpp
@@ -1146,8 +1146,7 @@ nsresult WorkerScriptLoader::FillCompileOptionsForRequest(
// disable top-level await for sw module scripts
const auto* workerPrivate = GetCurrentThreadWorkerPrivate();
- if (workerPrivate &&
- workerPrivate->IsServiceWorker() &&
+ if (workerPrivate && workerPrivate->IsServiceWorker() &&
aRequest->IsModuleRequest()) {
aOptions->topLevelAwait = false;
}
diff --git a/netwerk/protocol/http/HttpBaseChannel.cpp b/netwerk/protocol/http/HttpBaseChannel.cpp
@@ -3046,7 +3046,8 @@ nsresult EnsureMIMEOfScript(HttpBaseChannel* aChannel, nsIURI* aURI,
}
const auto internalPolicyType = aLoadInfo->InternalContentPolicyType();
- if (internalPolicyType == nsIContentPolicy::TYPE_INTERNAL_WORKER_STATIC_MODULE &&
+ if (internalPolicyType ==
+ nsIContentPolicy::TYPE_INTERNAL_WORKER_STATIC_MODULE &&
nsContentUtils::IsJsonMimeType(typeString)) {
// script and json are both allowed
glean::http::script_block_incorrect_mime