@lvce-editor/extension-management-worker 4.39.1 → 4.40.0
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.
|
@@ -2406,6 +2406,10 @@ const createWebViewWorkerRpc2 = async (rpcInfo, port) => {
|
|
|
2406
2406
|
|
|
2407
2407
|
// TODO have a way so that the worker already includes the webview api and the extension
|
|
2408
2408
|
// host sub-worker doesn't need to import the other file
|
|
2409
|
+
if (rpcInfo.contentSecurityPolicy) {
|
|
2410
|
+
const pathName = new URL(rpcInfo.url, 'http://localhost').pathname;
|
|
2411
|
+
await invoke('ExtensionHostWorkerContentSecurityPolicy.set', pathName, rpcInfo.contentSecurityPolicy);
|
|
2412
|
+
}
|
|
2409
2413
|
await invokeAndTransfer('IpcParent.create', {
|
|
2410
2414
|
method: ModuleWorkerAndWorkaroundForChromeDevtoolsBug,
|
|
2411
2415
|
name: rpcInfo.name,
|