Repository navigation
fix(export): retire pending PDF image replies with their frame - #35419
Conversation
5ee24e5 to
572a0b0
Compare
[Low impact] The PR appears safe to merge; no actionable defect was found in the changed code. SummaryChanges PDF image waiting to call
OrcaWin explicitly described the controlled native checks and the unmeasured platforms and full-editor behavior. Those limits are not reported as new defects. Reviews (1) · Last reviewed commit: "fix(export): retire pending PDF image re..." · Reviewed by Greptile |
|
No actionable comments were generated in the recent review.
|
LoC: +3/-3
Release PDF image-readiness script replies with their document frame when an export is aborted or times out. The helper already waits for loading before this call; public frame execution preserves its main world and user-gesture parameter. Two existing test mocks adapt the API shape, with all assertions unchanged.
Validation: 38 existing helper/IPC tests, node typecheck, lint/format, nine quality groups, and all five unchanged precommit tasks pass. Actual hidden native43.8.1 controls use ordinary production-builder HTML and schedule owner abort immediately after the real public script invocation: N1/N10 baseline retained1/6 destroyed WebContents JS wrappers after5s versus0/0 with the fix. Native replies are not held or fabricated. Healthy no-image/image PDFs have identical extracted text and rendered pixels. Additional helper-only pending-image controls preserve the real60000ms timeout and release retained wrappers; normal Markdown parsing removes the lazy-image attribute used by that adverse fixture, so no normal-editor lazy-image bug is claimed.
Requester retirement reaches the helper through the existing abortWhenRendererGone signal in export IPC. Native proof is at controlled helper/HTML-builder seams; natural race frequency, full editor UI reproduction, heap bytes/RSS/CPU/latency savings and macOS/Windows execution are unmeasured. Required aggregate
pnpm check:changed --maxWorkers=2passed (exit 0, 20/20 checks, 212.2s) on author head 5ee24e5 vs main bbd635e; after a clean rebase onto main ce44117, the reviewer's rerun passed 21/21 checks in 110.2s on 572a0b0.The initial package build unexpectedly auto-refreshed dependency state/postinstall while the shared aggregate was active; the incident and captured output are preserved. It reported already-up-to-date and native rebuild skipped; no zero-shared-write claim. Postrun pinned runtime hash verified. Later normal hooks used strict external tool dispatch without skipping tasks.
Frozen author:
5ee24e573fa6d502d9ce2407fc8eb0d7eaaa5d10(rebased without changes to572a0b00aa6). Evidence:/home/neil/.local/state/orca-electron-audit/pdf-image-reply-retirement-{candidate,implementation,review,root-review}/. This follows the already merged export-owner cancellation fix.