From f3c92588f25a6fb44798a4d6d04d5c8db4754306 Mon Sep 17 00:00:00 2001 From: hackademix Date: Sat, 16 Nov 2024 00:03:42 +0100 Subject: [PATCH] [nscl] Switch all the Chromium usages of patchWindow() to the new Worlds API. --- src/bg/RequestGuard.js | 1 + src/manifest.json | 3 ++- src/nscl | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/bg/RequestGuard.js b/src/bg/RequestGuard.js index b01dde9..6408019 100644 --- a/src/bg/RequestGuard.js +++ b/src/bg/RequestGuard.js @@ -357,6 +357,7 @@ */ ns.policy.set(key, perms); await ns.savePolicy(); + await RequestGuard.DNRPolicy?.update(); } return {enable: key}; }, diff --git a/src/manifest.json b/src/manifest.json index 6b0842f..24e6312 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -131,7 +131,8 @@ "/nscl/main/Worlds.js", "/nscl/main/Worlds.main.js", "/nscl/main/patchWorkers.main.js", - "/nscl/main/WebGLHook.main.js" + "/nscl/main/WebGLHook.main.js", + "/nscl/main/prefetchCSSResources.main.js" ] }, { diff --git a/src/nscl b/src/nscl index 69000af..ec68d37 160000 --- a/src/nscl +++ b/src/nscl @@ -1 +1 @@ -Subproject commit 69000af2833595c39ffddc4dc79c3d0fab0328b5 +Subproject commit ec68d37aaf9279a81aa5970942e166777a1ab9f4