Repository navigation
Conversation
Collaborator
Author
|
Thanks for tracking this down. The leftover Electron invokeInWebContents reply listener is real, but it is only a few hundred bytes. It only appears on the rare timeout/abort paths, and the hidden webContents is destroyed right after. Swapping executeJavaScript for a new sandboxed preload build entry with custom IPC adds packaging and preload-resolution risk: the packaged build is untested, and a missing preload now fails every native-page operation outright. It also adds a lot of test churn. That cost outweighs a negligible leak. Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar). |
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.
LoC: +296/-67
Release native extension-page reply ownership when scripting operations are cancelled or time out. A dedicated sandboxed preload uses the same Electron renderer execution API and returns its result through a scoped WebContents listener, which is removed on every outcome. Preserve script values, native errors, the existing deadline, AbortSignal and hidden-window cleanup.
Validation: 12 focused tests, focused new-code TypeScript and all five unchanged normal precommit tasks pass. Final-head hidden Linux Electron comparisons preserve undefined/sparse values, structured-clone types, statement completion and rejection semantics. Real scripting register/list/duplicate/unregister, storage clear, restore errors, a controlled final-list failure and an entered unresolved-script deadline pass. At a controlled public dispatch/unload ordering, baseline retained wrappers at N1/N10 were 1/8 after five seconds; final was 0/0. All 48 final windows retire with zero scoped reply listeners; native windows end at zero. Root verified 61 sealed artifacts, 104 production source hashes, exact patch and bundle. Five relevant base sources still equal main 9dd4dc5.
Standalone CJS preload entry builds through installed Vite; a full packaged-app build is untested. The widened narrow persistence typecheck reports the same two diagnostics as the pinned baseline; full aggregate validation is queued after #35446. No aggregate pass or Claude takeover claimed. No full Orca UI, natural failure-rate, macOS/Windows, CPU, latency or heap-byte claim. Existing installed dependencies reused without installation or repair. Transport remains local Electron ownership and changes no remote schema or workspace assumptions.
Frozen head
d69f5d1d246a5cb282e6cf57a6ffb0d0513521e8, basee5b45ac90f9f95b63f23cc5217e3d32b362cf1ea. Evidence:/home/neil/.local/state/orca-electron-audit/extension-native-page-reply-retirement-implementation/IMPLEMENTATION.md.