[nscl] Switch all the Chromium usages of patchWindow() to the new Worlds API.

This commit is contained in:
hackademix 2024-11-16 00:03:42 +01:00
parent 3fe53be3fb
commit f3c92588f2
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
3 changed files with 4 additions and 2 deletions

View File

@ -357,6 +357,7 @@
*/
ns.policy.set(key, perms);
await ns.savePolicy();
await RequestGuard.DNRPolicy?.update();
}
return {enable: key};
},

View File

@ -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"
]
},
{

@ -1 +1 @@
Subproject commit 69000af2833595c39ffddc4dc79c3d0fab0328b5
Subproject commit ec68d37aaf9279a81aa5970942e166777a1ab9f4