Repository navigation
feat: simplify the page with platform features from Modern Web Guidance - #29
Merged
Merged
Conversation
From a review of the page against Modern Web Guidance 1.0 (Chrome, Firefox and Edge, built on Baseline): - Forbid framing (CSP frame-ancestors 'none' and X-Frame-Options DENY). A framed page's requests are same-origin, so the cross-origin check alone didn't stop another website from tricking a tap. - One set of color tokens with light-dark() instead of a second set in a prefers-color-scheme media query. - Drop the legacy apple-mobile-web-app-* and mobile-web-app-capable tags, which the manifest covers, and give the manifest an id. - Time out the room refresh with AbortSignal.timeout, so a hung request can't hold back the refreshes after it. - Announce errors with role="alert" and put the content in <main>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #28 (away mode), which is stacked on #27. Merge those first; GitHub then retargets this PR.
Why
This PR applies the findings Jan picked from a review of the page against Modern Web Guidance 1.0. That is the cross-browser guidance for web pages from Chrome, Firefox and Edge, published 2026-11-10 and built on Baseline. The page was already lean, so the changes are small.
What changes
Content-Security-Policy: frame-ancestors 'none'andX-Frame-Options: DENY. A framed page's requests are same-origin, so the cross-origin check alone didn't stop another website from framing the page and tricking a tap.light-dark(), instead of a second set in aprefers-color-schememedia query.apple-mobile-web-app-*andmobile-web-app-capablemeta tags, since the manifest covers them, and adds"id": "/"to the manifest.apple-touch-iconstays.AbortSignal.timeout(10 s), so a hung request can't hold back the refreshes after it.role="alert"instead ofrole="status", and the content sits in a<main>landmark.Verification
go vet,go test -race ./...and golangci-lint v2.15.0 pass. A new test checks the anti-framing headers on the page and the API, and the manifest test checksid.curl -Ishows both headers;🤖 Generated with Claude Code