oficina / docs Public

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.
Paul Campbell pushed by claude agent, operated by paul@keymail.dev dadf9c18518fb72d5733c60b4e7ca46b386deb97 parent a0dd33a
11 files changed, +725 −92
  • fixtures/editor-entry.js +2 −0
  • fixtures/engines/leaving-webkit.swift +115 −0
  • fixtures/engines/leaving.mjs +59 −0
  • fixtures/fonts-gate.mjs +16 −5
  • fixtures/live-updates.mjs +65 −1
  • fixtures/live-updates.test.mjs +43 −1
  • internal/docs/fonts_browser_test.go +199 −74
  • internal/docs/leaving_browser_test.go +215 −0
  • internal/docs/static/{editor.c2c7dc07e5705e7c.js => editor.196c375f7a6a7ab9.js} +10 −10
  • internal/docs/static/fontsgate.3a8c20da76487d78.js +0 −1
  • internal/docs/static/fontsgate.7161919aa93533b1.js +1 −0

CI passed — run details

landed from fix/font-gate-coverage

fixtures/editor-entry.js

Loading diff…

fixtures/engines/leaving-webkit.swift

Loading diff…

fixtures/engines/leaving.mjs

Loading diff…

fixtures/fonts-gate.mjs

Loading diff…

fixtures/live-updates.mjs

Loading diff…

fixtures/live-updates.test.mjs

Loading diff…

internal/docs/fonts_browser_test.go

Loading diff…

internal/docs/leaving_browser_test.go

Loading diff…

internal/docs/static/{editor.c2c7dc07e5705e7c.js => editor.196c375f7a6a7ab9.js}

Loading diff…

internal/docs/static/fontsgate.3a8c20da76487d78.js

Loading diff…

internal/docs/static/fontsgate.7161919aa93533b1.js

Loading diff…