test: exercise XSS regressions in headless Chrome (#4)

This commit is contained in:
Mikhail Chusavitin committed 2026-10-26 21:03:36 +03:00
1 parent e8dd03c4f5
commit ffdbe4fbd0
3 files changed
+114 -2

No files matched your search

+4 -1
View File
@@ -349,4 +349,7 @@ Rules:
quoted attributes. Never interpolate data into JavaScript event attributes.
Cart and rental controls carry escaped LOT values in `data-lot` and dispatch
through delegated listeners. Sync errors are escaped as text; toast messages use
`textContent`. Run `node scripts/tests/html-security.cjs` for the regression check.
`textContent`. Run `node scripts/tests/html-security.cjs` for the fast regression check and
`node scripts/tests/html-security-browser.cjs` for real DOM parsing and delegated
events in headless Chrome (`CHROME_BIN` overrides the executable). The browser
check uses synthetic data, controlled API responses and a temporary profile.