test: exercise XSS regressions in headless Chrome (#4)
This commit is contained in:
1 parent
e8dd03c4f5
commit
ffdbe4fbd0
3 files changed
+114
-2
No files matched your search
@@ -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.
|
||||
Reference in new issue
Block a user