From ed47de6a2c0ef72717f1e6dbd851128176c269dd Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Tue, 10 Nov 2026 22:28:15 +0400 Subject: [PATCH] Let the tiles scenario allow the page's web fonts The check for requests to Google and Cesium ion caught the Google Fonts stylesheet the page loads on every run, which the map policy allows; it now looks only for tiles, credits and ion. --- scripts/qa-tiles-fixture.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/qa-tiles-fixture.mjs b/scripts/qa-tiles-fixture.mjs index f47274abf..bd6a5943a 100644 --- a/scripts/qa-tiles-fixture.mjs +++ b/scripts/qa-tiles-fixture.mjs @@ -309,9 +309,13 @@ await strict.run({}, async (browser) => { } if (report) console.log(`REPORT browser errors ${JSON.stringify(errors)}`); else assert.deepEqual(errors, []); + // No Google tiles, credits or Cesium ion; the page's web fonts (allowed by + // the map policy) come from Google's font hosts on every run. assert.deepEqual( - Object.keys(strict.ledger.external).filter((host) => - /google|gstatic|cesium\.com/i.test(host), + Object.keys(strict.ledger.external).filter( + (host) => + /google|gstatic|cesium\.com/i.test(host) && + !/^fonts\.(googleapis|gstatic)\.com$/i.test(host), ), [], );