fix(web): stop shipping doc-comments in web/index.html to every visitor #953
No reviewers
Labels
No labels
accepted
bug
declined
docs
duplicate
enhancement
good first issue
in-progress
needs-info
privacy
security
triage
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
LibreKAT/Ocideck!953
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/index-html-comment-leak"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
web/index.html is copied verbatim into the web build, so its HTML comments travel to anyone who views the deployed page's source. The CSP/referrer/splash explanations there had grown into full documentation blocks duplicating (or exceeding) what's already in docs/SECURITY_DESIGN.md and docs/BUILD.md.
This trims those comments to short pointers and moves the actual rationale into those docs, where it serves maintainers instead of every browser tab.
Verified:
No regression test added: this is a comment/documentation-only change with no functional behavior to regress (the existing web_index_splash_test.dart already guards the splash layer's actual behavior).
Reported by Jeroen Diel. Closes #952.