tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 1bdbf595f945972f6271baed14beea6d27bae62f
parent 37cf677d0589e05879ad99a7eb4b66bd69002c12
Author: Tooru Fujisawa <arai_a@mac.com>
Date:   Wed, 29 Oct 2025 09:37:24 +0000

Bug 1994617 - Part 5: Reorder CalculateCacheFlag items. r=nbp

Differential Revision: https://phabricator.services.mozilla.com/D270105

Diffstat:
Mdom/script/ScriptLoader.cpp | 16++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp @@ -2711,14 +2711,6 @@ void ScriptLoader::CalculateCacheFlag(ScriptLoadRequest* aRequest) { return; } - if (aRequest->IsBytecode()) { - LOG(("ScriptLoadRequest (%p): Bytecode-cache: Skip all: IsBytecode", - aRequest)); - aRequest->MarkSkippedAllCaching(); - MOZ_ASSERT(!aRequest->getLoadedScript()->HasDiskCacheReference()); - return; - } - if (aRequest->IsModuleRequest() && aRequest->AsModuleRequest()->mModuleType != JS::ModuleType::JavaScript) { LOG(("ScriptLoadRequest (%p): Bytecode-cache: Skip all: JSON module", @@ -2729,6 +2721,14 @@ void ScriptLoader::CalculateCacheFlag(ScriptLoadRequest* aRequest) { return; } + if (aRequest->IsBytecode()) { + LOG(("ScriptLoadRequest (%p): Bytecode-cache: Skip all: IsBytecode", + aRequest)); + aRequest->MarkSkippedAllCaching(); + MOZ_ASSERT(!aRequest->getLoadedScript()->HasDiskCacheReference()); + return; + } + if (mCache) { LOG(("ScriptLoadRequest (%p): Bytecode-cache: Mark in-memory: Stencil", aRequest));