Repository navigation
Conversation
morluto
added a commit
that referenced
this pull request
Oct 16, 2026
Use the shared expression owner for BrowserWindow options and webPreferences. Retain overwrite and spread uncertainty through CLI and MCP evidence. Refs: #4250, #4281 Co-authored-by: Geekwolf <[email protected]>
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.
Upstream integration update — 2026-10-16
Main already includes the fix in b67baede2ed679bdb22af5d9c62a549c30cff9b0, referencing #4250 and this PR, with Geekwolf credited as co-author. It uses the shared expression owner and includes CLI and stdio MCP regression coverage. No duplicate implementation or replacement code push is proposed.
Verified upstream main
808339f0b1cf3837445f392b5d5f1f362d64a27don Windows x64 with Node 24.18.0 / npm 11.16.0: all 23 options tests and four compiled CLI/stdio MCP preload-override workflows passed, including transparent wrappers and unresolved later overrides. These are static-analysis fixtures; no real Electron process or preload code was executed. This PR remains open/draft; code integration is not a GitHub merge of this PR. The original proposal and its historical verification follow.Summary
Fixes #4250. Inline BrowserWindow options or
webPreferenceswrapped inas constnow retain their explicit preferences and preload associations, just like unwrapped object literals.Change and scope
The BrowserWindow syntax owner uses the existing type-erased expression normalizer before classifying each object. Object property lookup still owns overwrite order: unknown later spreads and computed keys do not become resolved preload paths. No new evaluator, alias expansion, API/schema change, Electron execution or provider authority. Maintainer scope decision: not applicable to this existing static-analysis correction.
Evidence and validation
93c620c3: two new syntax cases failed; the compiled CLI reported only one preload entry instead of three for six windows.check:fast,verify:test-discovery(1,388 files), staged formatting/lint andgit diff --checkpassed. Node 24.18.0 / npm 11.16.0 invoked on Windows x64. No real Electron or MCP verification claim.src/adb/AdbProvider.tsformatting. Full current-head CI is required; unrelated formatting is not included here.Author readiness
Human owner: @geekwolf