verify: assert the manifest has no theme_color (Firefox chrome regression guard)

This commit is contained in:
inference-admin committed 2026-11-28 17:08:58 +00:00
1 parent 3708c44734
commit 44c1c426fc
1 file changed
+13
+13
View File
@@ -142,6 +142,19 @@ cmd_verify() {
http_body "https://chat.inference.coop/" | grep -qE 'x-coop-build' && ok "x-coop-build marker present" \ http_body "https://chat.inference.coop/" | grep -qE 'x-coop-build' && ok "x-coop-build marker present" \
|| bad "no x-coop-build marker (stale service-worker clients will not self-heal)" || bad "no x-coop-build marker (stale service-worker clients will not self-heal)"
# Firefox for Android ignores <meta theme-color>; it colours its installed-site
# chrome from manifest theme_color (toolbar/status) plus a white/black nav bar
# derived from background_color. A theme_color here re-creates the light bands
# around the dark app, so its absence is a real assertion, not cosmetics.
local mf; mf=$(http_body "https://chat.inference.coop/manifest.webmanifest")
if grep -qE '"theme_color"' <<<"$mf"; then
bad "manifest carries theme_color — Firefox PWA chrome will again show static light bands"
else
ok "manifest has no theme_color (Firefox chrome follows the browser theme)"
fi
grep -qE '"background_color": *"#faf8f5"' <<<"$mf" && ok "manifest background_color cream" \
|| bad "manifest background_color is not #faf8f5"
# The scheduler task must point at a file that exists in the RUNNING image. # The scheduler task must point at a file that exists in the RUNNING image.
# Catches a manifest repoint deployed before its image landed (2026-10-25). # Catches a manifest repoint deployed before its image landed (2026-10-25).
local sched_cmd local sched_cmd