Repository navigation
fix: recover rejected page rasters without resetting the reading session - #45
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
leafspace | c25fb79 | Commit Preview URL Branch Preview URL |
Oct 03 2026, 11:51 PM |
nkanf-dev
marked this pull request as ready for review
October 4, 2026 00:08
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.
Summary
Evidence
da504d9negative control: run 37161596946, both grab/pointer cases reach a real injected native drawImage failure and hidden canvas, then fail because no alert exists. The baseline screenshot shows blank paper beside a healthy held thumbnail.c25fb790688a2ea2d5b509b9869538dcfda553a7: push run37163067502 is clean with no retries: 238 Chromium/compact + 123 Firefox + 167 WebKit/mobile-WebKit acceptance, plus 10 Firefox and20 WebKit stability repeats. Checks and baseline evidence also passed; Cloudflare branch build succeeded.Worker was terminatedduring Float while the docked Document is still loading, before Close; worker offsets exactly match the independently reproduced PDF.js pending-load retirement defect. Document file/options/lifecycle, workspace layout branches, services and dependencies are unchanged, and no Page/Retry existed at that point. The same-head push suite is retry-free. No error suppression or artificial settling wait was added.Scope and files
Production code is limited to
src/components/reader/ReaderViewport.tsx. New recovery UI/E2E tests and a 2,140-byte self-generated raster/link fixture document the behavior. Five adjacent E2E files use a stable reader-shell toolbar relation; the timeline test helper waits for observable native input completion. Playwright compact-project inclusion and README/fixture/coverage documentation are updated.No public API, saved schema, dependency or workflow changes. No PDF bytes or stored workspace reset, Document remount retry, blanket blank-page heuristic, automatic retry loop or error suppression.
Limits
Failures are controlled at the native canvas drawing boundary in isolated synthetic-book contexts, not induced hardware memory exhaustion. Mobile projects are emulation, not physical iOS/VoiceOver certification. This does not fix the separately reproduced pending PDF.js worker teardown rejection, silent malformed-decoder output, or failed Document parsing. A very short reader scrolls the error card internally so Retry remains reachable.