tor-browser

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

commit 4d9337ec8b02701ca5e5589293d9603ff5138c3e
parent 759d89cc59d11c684089c2e9550fc1c87d2b4e49
Author: Tooru Fujisawa <arai_a@mac.com>
Date:   Sat,  8 Nov 2025 02:36:11 +0000

Bug 1998322 - Part 5: Ignore extra diskcache:noschedule. r=nbp

Given that Disk Cache handling in the SharedScriptCache is asynchronous,
and it's triggered depending on the ongoing loading, the timing depends
on the scheduling, and sometimes extra events are dispatched.

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

Diffstat:
Mdom/base/test/head.js | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/dom/base/test/head.js b/dom/base/test/head.js @@ -109,6 +109,13 @@ async function jsCacheContentTask(test, item) { if (item.events.length === 0) { resolve(); } + } else if (param.event === "diskcache:noschedule") { + // The disk cache handling for the in-memory cache can happen multiple + // times depending on the scheduling and speed + // (e.g. debug vs opt, verify mode). + // + // Ignore any unmatching message here. + dump("@@@ Ignoring: " + data + "\n"); } else { dump("@@@ Got unexpected event: " + data + "\n"); dump("@@@ Expected: " + JSON.stringify(item.events[0]) + "\n");