Repository navigation
Kanbun reader: recover when its frame loads badly - #60
Merged
Merged
Conversation
On the iOS home-screen app a frame occasionally loaded without its typesetter or never answered, leaving the plain vertical source with no way back short of a reload. The host now asks again, reloads the frame (twice at most) on an error or silence, and a layout choice restarts the attempts. The viewer answers every explicit request. Host script and stylesheet are fingerprinted like the frames.
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.
On the iOS home-screen web app the Japanese pages sometimes showed plain vertical text with the kanbun layer missing, and switching layout did not bring it back.
Cause. The visual reader is shown only after the sandboxed frame reports
ready. If the frame loaded without its typesetter (it reportserror), or never answered, nothing retried. The viewer also stayed silent when asked again, if its size had not changed.Change
errorreport reloads the frame at once. Choosing a layout restarts the attempts.poetry-kunten-host.jsandpoetry-kunten-host.cssnow carry?v=fingerprints, so an installed app does not pair new frames with an old controller.Test. New
qa:poetry-kunten-recoveryruns in Chromium and WebKit at 390 px:readymessage is lost;All 8 scenarios pass. Against current
mainthe first scenario fails, with the reader never ready. Fullnpm run qapasses; oneqa:author-shoppage-load timeout passed when rerun on its own.🤖 Generated with Claude Code
https://claude.ai/code/session_014ECg6ksCbqKTUJNKX4Qt6C