From 4269085c11237be62cc0f1638d39fff24e1954f1 Mon Sep 17 00:00:00 2001 From: Karibhou Date: Thu, 5 Nov 2026 13:06:17 +0000 Subject: [PATCH] style(page-frames): wrap header comment Hive-Run: hivecommons/hivecommons.github.io#354 Hive-Plan: issue-354 Hive-Spec: issue-354#header-wrap Signed-off-by: Karibhou --- scripts/page-frames.test.mjs | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/scripts/page-frames.test.mjs b/scripts/page-frames.test.mjs index b062231..74478f4 100644 --- a/scripts/page-frames.test.mjs +++ b/scripts/page-frames.test.mjs @@ -3,14 +3,15 @@ // hash-pinned script-src CSP only governs the homepage document: a frame that // is same-origin (a relative src, one on hivecommons.dev, or its GitHub Pages // alias — the org's project sites are served under this custom domain by *other* -// repositories) and unsandboxed can script `parent.document` and navigate `top`, so whatever -// ships in that other repository rewrites this page with none of this repo's -// gates in the way. featured-video.test.mjs pins the YouTube player's exact -// sandbox; this gate is the floor every other frame must meet: a `sandbox` -// attribute is present, it never grants top navigation, forms, modals or -// downloads, and a same-origin frame never pairs `allow-same-origin` with -// `allow-scripts` (on a same-origin document that pair lets the content strip -// its own sandbox, i.e. it is no sandbox at all). Each rule has a fixture +// repositories) and unsandboxed can script `parent.document` and navigate +// `top`, so whatever ships in that other repository rewrites this page with +// none of this repo's gates in the way. featured-video.test.mjs pins the +// YouTube player's exact sandbox; this gate is the floor every other frame +// must meet: a `sandbox` attribute is present, it never grants top navigation, +// forms, modals or downloads, and a same-origin frame never pairs +// `allow-same-origin` with `allow-scripts` (on a same-origin document that +// pair lets the content strip its own sandbox, i.e. it is no sandbox at all). +// Each rule has a fixture // self-test. Zero dependencies. Usage: node --test scripts/page-frames.test.mjs import { test } from "node:test"; import assert from "node:assert/strict";