Docs: leaving a document lets go of its live-update stream
Chrome and WebKit keep left pages in the back/forward cache; each kept its live-update EventSource open, and after five documents the next one stalled on HTTP/1.1's connection limit. live-updates.mjs now owns pagehide/pageshow from load: leaving closes every stream and blocks new ones, returning reopens and resyncs. The font-coverage test now checks fallback families on their own instead of subtracting them. Reviewed by GPT-6-Astra via Codex (#86). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Squashed from fix/font-gate-coverage into main.
11 files changed,
+725
−92
fixtures/editor-entry.js+2 −0fixtures/engines/leaving-webkit.swift+115 −0fixtures/engines/leaving.mjs+59 −0fixtures/fonts-gate.mjs+16 −5fixtures/live-updates.mjs+65 −1fixtures/live-updates.test.mjs+43 −1internal/docs/fonts_browser_test.go+199 −74internal/docs/leaving_browser_test.go+215 −0internal/docs/static/{editor.c2c7dc07e5705e7c.js => editor.196c375f7a6a7ab9.js}+10 −10internal/docs/static/fontsgate.3a8c20da76487d78.js+0 −1internal/docs/static/fontsgate.7161919aa93533b1.js+1 −0
CI passed — run details
landed from fix/font-gate-coverage
fixtures/editor-entry.jsLoading diff…
fixtures/engines/leaving-webkit.swiftLoading diff…
fixtures/engines/leaving.mjsLoading diff…
fixtures/fonts-gate.mjsLoading diff…
fixtures/live-updates.mjsLoading diff…
fixtures/live-updates.test.mjsLoading diff…
internal/docs/fonts_browser_test.goLoading diff…
internal/docs/leaving_browser_test.goLoading diff…
internal/docs/static/{editor.c2c7dc07e5705e7c.js => editor.196c375f7a6a7ab9.js}Loading diff…
internal/docs/static/fontsgate.3a8c20da76487d78.jsLoading diff…
internal/docs/static/fontsgate.7161919aa93533b1.jsLoading diff…