tor-browser

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

commit 37508abe673bbb8c976c6cc77d43d7aae8a9dc14
parent 5df6a99098033eac5a05134437d4393200c8652b
Author: Tooru Fujisawa <arai_a@mac.com>
Date:   Tue, 11 Nov 2025 08:26:19 +0000

Bug 1997870 - Part 1: Remove obsolete comment. r=bthrall

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

Diffstat:
Mdom/script/ScriptLoader.cpp | 7+------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dom/script/ScriptLoader.cpp b/dom/script/ScriptLoader.cpp @@ -3614,6 +3614,7 @@ void ScriptLoader::MaybeUpdateDiskCache() { } void ScriptLoader::UpdateDiskCache() { + MOZ_ASSERT(!mCache); LOG(("ScriptLoader (%p): Start bytecode encoding.", this)); // If any script got added in the previous loop cycle, wait until all @@ -3635,12 +3636,6 @@ void ScriptLoader::UpdateDiskCache() { for (auto& loadedScript : mDiskCacheQueue) { // The bytecode encoding is performed only when there was no // bytecode stored in the necko cache. - // - // For in-memory cached case, the save might already be performed - // by other requests. - // See also ScriptLoader::MaybePrepareModuleForDiskCacheAfterExecute. - // - // TODO: Move this to SharedScriptCache. if (!loadedScript->HasDiskCacheReference()) { continue; }