feat(PR-03): browser acceptance and visual evidence for the single reader theme
- real Chromium (Playwright) suite against the frozen core: one CSS/one script, zero external requests, zero console errors, document/source switch, local search, settings, 7 viewport widths (390..2560) without overflow or dock clipping, no-JS readability, print mode, explicit run + clear - tools/test-browser.sh starts Live servers on examples/welcome and examples/control-flow, verifies core SHA-256 unchanged - screenshots committed under docs/evidence/PR-03 (Welcome 1664x920 / 390x844, real Trace run page); pixel-level manual comparison marked UNVERIFIED - meta CSP drops the ignored frame-ancestors directive (HTTP header keeps it)
This commit is contained in:
1 parent
df1cf9ec24
commit
9a80272b5f
10 files changed
+353
-5
No files matched your search
+3
-1
@@ -1231,7 +1231,9 @@ fn escape_attr(raw: &str) -> String {
|
||||
}
|
||||
|
||||
fn csp_policy() -> &'static str {
|
||||
"default-src 'none'; style-src 'self'; script-src 'self' file:; img-src 'self' data:; font-src 'self'; connect-src 'self'; base-uri 'none'; form-action 'self'; frame-ancestors 'none'; object-src 'none'"
|
||||
// `frame-ancestors` is ignored in <meta>; the HTTP header (server.rs) adds
|
||||
// the framing restrictions. Keep the meta policy identical otherwise.
|
||||
"default-src 'none'; style-src 'self'; script-src 'self' file:; img-src 'self' data:; font-src 'self'; connect-src 'self'; base-uri 'none'; form-action 'self'; object-src 'none'"
|
||||
}
|
||||
|
||||
fn percent_encode_path(raw: &str) -> String {
|
||||
|
||||
Reference in new issue
Block a user