commit cc15fbf36578988b082ef2cea07ebf35de982dac
parent 937372ef80f62051b192a00b5dfd22bc837420d0
Author: Tooru Fujisawa <arai_a@mac.com>
Date: Mon, 10 Nov 2025 11:01:00 +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;
}