commit 2041d040bbb47bc8edea6429c7e50f03907ebc31
parent 9878ddf5d502295efaea04da3d04bfd64822871b
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:
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;
}