Skip to content

fix: release the large page preview when closed - #9

Merged
devnithdev merged 1 commit into
devnithdev:mainfrom
imshah-id:fix/release-closed-page-preview
Nov 1, 2026
Merged

devnithdev merged 1 commit into
devnithdev:mainfrom
imshah-id:fix/release-closed-page-preview

Conversation

@imshah-id

Copy link
Copy Markdown
Contributor

Closes #4

Closing the large page view now clears pvStage, releasing the hidden preview subtree. Reopening still renders normally, including opening the same page twice. Existing detached-holder checks prevent asynchronous drawing from inserting into the closed view.

Added a plain-Node VM regression following t13-upload-retry.js, with coverage for close, same-page reopen, different-page reopen and repeated close; included it in the PR checks and tests README.

Checks run:

  • node "Source code/tests/t15-page-view.js": failed before the fix at "releases the large preview subtree"; all 13 checks pass after it.
  • node "Source code/tests/t13-upload-retry.js": 11 checks pass.
  • node --check "Source code/server/public/app.js" and git diff --check: pass.

AI assistance: Codex prepared and reviewed the change and ran these checks.

Not checked: a real PDF on an older phone, browser heap measurements, or installer/network suites. No visible layout change is intended.

@devnithdev
devnithdev merged commit 132d778 into devnithdev:main Nov 1, 2026
3 checks passed
@devnithdev

Copy link
Copy Markdown
Owner

Thanks, nice clean fix, and the test is a great addition! It will go out with the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Free the large page picture when the bigger page view closes

2 participants