From 36ec531fb80e5c0b428cd615ad006a41da150ec8 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 28 Oct 2026 05:22:37 +0100 Subject: [PATCH] fix: account for the pdf.js namespaces in the Lite bundle host scan #903 --- scripts/lite/scan-hosts.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/lite/scan-hosts.mjs b/scripts/lite/scan-hosts.mjs index 5a48e122a..6d1dc2f8a 100644 --- a/scripts/lite/scan-hosts.mjs +++ b/scripts/lite/scan-hosts.mjs @@ -41,6 +41,7 @@ export const LITE_BUNDLE_NON_REQUEST = [ { files: CHUNKS, why: "JMAP capability URI and XML namespaces", hosts: ["bulwarkmail.com", "www.w3.org", "creativecommons.org"] }, { files: /./, why: "docs links in the translations and the README", hosts: ["bulwarkmail.org", "github.com"] }, { files: PAGES, why: "XML namespaces of inline SVG", hosts: ["www.w3.org"] }, + { files: /^_next\/static\/media\/pdf\.worker[^/]*\.m?js$/, why: "XML namespaces and the licence link inside pdf.js", hosts: ["www.apache.org", "www.w3.org", "www.xfa.org", "ns.adobe.com"] }, ]; const RESERVED_TLDS = new Set(["example", "test", "invalid", "localhost", "local", "internal", "lan"]);