tor-browser

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

commit bf4417acd315988a33a9d4e2ee5ef77e920124d6
parent 8ef7a8ef4aa279c5f82cf11a97506e2691f23d52
Author: Mike Conley <mconley@mozilla.com>
Date:   Wed,  5 Nov 2025 20:00:18 +0000

Bug 1998419 - Skip using the ScriptPreloader cache when reading in content scripts for newtab. r=home-newtab-reviewers,maxx

This is a safe, upliftable change that gets us off of the ScriptPreloader. The next logical
step is to get rid of the noscript version of the activity-stream HTML page, and load the
scripts on the page "normally" with <script> tags. That will occur instead in bug 1998468.

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

Diffstat:
Mbrowser/actors/AboutNewTabChild.sys.mjs | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/browser/actors/AboutNewTabChild.sys.mjs b/browser/actors/AboutNewTabChild.sys.mjs @@ -58,7 +58,10 @@ export class AboutNewTabChild extends RemotePageChild { ]; for (let script of scripts) { - Services.scriptloader.loadSubScript(script, this.contentWindow); + Services.scriptloader.loadSubScriptWithOptions(script, { + target: this.contentWindow, + ignoreCache: true, + }); } } else if (event.type == "unload") { try {