@lvce-editor/extension-management-worker 4.52.2 → 4.52.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2558,7 +2558,8 @@ const createWebViewWorkerRpc2 = async (rpcInfo, port) => {
|
|
|
2558
2558
|
// host sub-worker doesn't need to import the other file
|
|
2559
2559
|
if (rpcInfo.contentSecurityPolicy) {
|
|
2560
2560
|
const pathName = new URL(rpcInfo.url, 'http://localhost').pathname;
|
|
2561
|
-
|
|
2561
|
+
const contentSecurityPolicy = getContentSecurityPolicy(rpcInfo.contentSecurityPolicy, rpcInfo.url);
|
|
2562
|
+
await invoke('ExtensionHostWorkerContentSecurityPolicy.set', pathName, contentSecurityPolicy);
|
|
2562
2563
|
}
|
|
2563
2564
|
await invokeAndTransfer('IpcParent.create', {
|
|
2564
2565
|
method: ModuleWorkerAndWorkaroundForChromeDevtoolsBug,
|