Skip to content

fix(browser): release popup sizing with its document - #35432

Closed
OrcaWin wants to merge 3 commits into
OrcaWin/extension-action-popup-close-veto-independentfrom
OrcaWin/extension-popup-size-frame-channel
Closed

OrcaWin wants to merge 3 commits into
OrcaWin/extension-action-popup-close-veto-independentfrom
OrcaWin/extension-popup-size-frame-channel

Conversation

@OrcaWin

@OrcaWin OrcaWin commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​161 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​160
Prod 6 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​274 $\color{#cf222e}{\Huge{\mathbf{−}}}$​109 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​165

LoC: +437/-112

Release extension popup sizing with its renderer document. Replace the pending script loop with a targeted public MessagePort, preserving existing measurement, debounce, geometry and fallback behavior. Gate presentation on the current document; retire stale ports/listeners on replacement, close and crash. Stacked on #35360 for transient popup dismissal.

Independent native review caught and corrected missing-resource handling: internal error documents now receive only the passive sizing receiver, preserving 25×25 error presentation and healthy reload without an extension API bridge. The first URL-guard attempt failed native validation and was discarded; its evidence is retained.

Validation: 47 focused tests, strict focused TypeScript and all five normal precommit tasks pass. Actual hidden Electron 43.8.1 production-host checks retain 1/10/20 destroyed wrappers on base and 0/0/0 on final; eleven controls cover healthy sizing, sandbox, error-page/reload, stale reports, close, failures and crash/reload. 97 base/101 final inputs, exact patch/bundle, original seals and final source after hooks verified. Seven relevant prechange files equal main 3f56b8f. Required aggregate validation is queued after #35421; no aggregate pass or Claude takeover claimed.

Linux isolated native fixture evidence; no full Orca toolbar/app, macOS/Windows, physical-memory, CPU or latency claim. Original public hidden capture inspected and CDP geometry checked; CDP screenshots stalled. No install/repair during this correction; earlier sibling shared-store refresh incidents remain disclosed in audit evidence.

Frozen head 8c9331700e566d4cb4834e95cf3d3cf5e86dfb10, stacked base 29d7927522630a69e58a6acad068c2122090e8a0. Detailed evidence: /home/neil/.local/state/orca-electron-audit/popup-size-error-document-receiver-fix/report.md; original sealed implementation and independent error review remain unchanged.

@OrcaWin
OrcaWin force-pushed the OrcaWin/extension-action-popup-close-veto-independent branch from 29d7927 to d75f4d0 Compare October 29, 2026 01:48
@OrcaWin

OrcaWin commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks. The leak of the destroyed popup wrapper is real but small, a few KB per manually opened popup. Replacing the working size watcher with a new preload MessagePort protocol (+436/-110, shared extension preload) adds a way for popups to never be shown. The PR also now conflicts with main's allowPageUnload from #35360. Closing.

Closing per maintainer triage (low-risk / zero user trade-off / material-gain bar).

@OrcaWin OrcaWin closed this Oct 29, 2026
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.

1 participant