From a2cc0268d2db003d2f00f298a4bb8e1eec3f2884 Mon Sep 17 00:00:00 2001 From: youennf Date: Thu, 7 Sep 2023 17:12:34 +0200 Subject: [PATCH] Workers module scripts should use hosts[alt][] instead of hosts[alt][0] (#41861) --- ...namic-import-remote-origin-credentials-checker-worker.sub.js | 2 +- ...tatic-import-remote-origin-credentials-checker-worker.sub.js | 2 +- .../resources/static-import-remote-origin-script-worker.sub.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/workers/modules/resources/dynamic-import-remote-origin-credentials-checker-worker.sub.js b/workers/modules/resources/dynamic-import-remote-origin-credentials-checker-worker.sub.js index c6ad11b5c7fd20..0fd172d3699144 100644 --- a/workers/modules/resources/dynamic-import-remote-origin-credentials-checker-worker.sub.js +++ b/workers/modules/resources/dynamic-import-remote-origin-credentials-checker-worker.sub.js @@ -1,6 +1,6 @@ // Import a remote origin script. const import_url = - 'http://{{hosts[alt][0]}}:{{ports[http][0]}}/workers/modules/resources/export-credentials.py'; + 'http://{{hosts[alt][]}}:{{ports[http][0]}}/workers/modules/resources/export-credentials.py'; if ('DedicatedWorkerGlobalScope' in self && self instanceof DedicatedWorkerGlobalScope) { import(import_url) diff --git a/workers/modules/resources/static-import-remote-origin-credentials-checker-worker.sub.js b/workers/modules/resources/static-import-remote-origin-credentials-checker-worker.sub.js index 74ff3c76eb4bc9..cc2907b05719ca 100644 --- a/workers/modules/resources/static-import-remote-origin-credentials-checker-worker.sub.js +++ b/workers/modules/resources/static-import-remote-origin-credentials-checker-worker.sub.js @@ -1,5 +1,5 @@ // Import a remote origin script. -import * as module from 'http://{{hosts[alt][0]}}:{{ports[http][0]}}/workers/modules/resources/export-credentials.py'; +import * as module from 'http://{{hosts[alt][]}}:{{ports[http][0]}}/workers/modules/resources/export-credentials.py'; if ('DedicatedWorkerGlobalScope' in self && self instanceof DedicatedWorkerGlobalScope) { postMessage(module.cookie); diff --git a/workers/modules/resources/static-import-remote-origin-script-worker.sub.js b/workers/modules/resources/static-import-remote-origin-script-worker.sub.js index 98c0b46a41fb2b..cd24382323519a 100644 --- a/workers/modules/resources/static-import-remote-origin-script-worker.sub.js +++ b/workers/modules/resources/static-import-remote-origin-script-worker.sub.js @@ -1,5 +1,5 @@ // Import a remote origin script. -import * as module from 'https://{{hosts[alt][0]}}:{{ports[https][0]}}/workers/modules/resources/export-on-load-script.py'; +import * as module from 'https://{{hosts[alt][]}}:{{ports[https][0]}}/workers/modules/resources/export-on-load-script.py'; if ('DedicatedWorkerGlobalScope' in self && self instanceof DedicatedWorkerGlobalScope) { self.onmessage = e => {