You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An openerless popup can still inherit browser restrictions that disappear if it is reopened as an ordinary tab. Electron 43.7.8 does not expose enough synchronous information to distinguish the tested restricted and safe script popups, so this prerequisite remains BLOCKED and changes no production routing.
What Changed
Added hidden Electron probes for actual adopted/native script children, restricted iframe controls, native link flags, missing adopted link contents, same-session parents, creation order and an unrelated-window admission reproducer. Replaced the single-listener native app mock with EventEmitter delivery and five explicit expected-failure assertions for the desired no-theft contract, plus a duplicate control. Reused the existing compatibility harness and included the new probe in Node runtime and the existing Linux boundary job.
Why
A passing mock or a fresh callback closure cannot prove that Electron supplies the matching original child. Real probes show that the production native adapter can grant an admission to an unrelated same-session window, and that the restricted/escape script controls have indistinguishable synchronous metadata despite different browser-enforced behavior. Recording the API limits keeps routing changes behind the required gate until the API or presentation tradeoff is explicitly resolved.
Linked Issue
Internal prerequisite to the supplied YouTube reauthentication design. No new issue was opened; the separate WebContentsView architecture investigation is not this change's scope.
Visual Proof
N/A — production behavior and UI are unchanged. The hidden synthetic Electron run observed handler admission before child creation, navigation before onBeforeRequest, and popup policy attached before the matching child’s first request. It reproduced the native adapter granting a pending admission to an unrelated same-session window while the actual popup received no callback. Restricted and escape-enabled script children exposed identical synchronous handler metadata and preferences even though Chromium blocked form submission only in the restricted child.
Testing
I manually tested these changes locally through hidden synthetic Electron/CDP fixtures on macOS arm64.
Automated tests added/updated. Five named expected failures document unresolved admission contract violations; they are not passed release gates.
Validation: 94 passed and 5 expected contract failures (99 cases) across six files; 51 CI/runtime-routing checks passed; Node typecheck and changed-file code quality passed. Native focus/visible windows, Linux/Windows runtime, SSH/server-hosted authentication, replacement-tab materialization, stress comparison and a fresh YouTube challenge remain unverified.
Review
Do not treat this draft as approval to broaden popup routing. Adopted association, native association, adopted script conversion safety and native script conversion safety are each BLOCKED. No production admission workaround is included.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
The four admission/conversion gates remain blocked. The original YouTube routing defect is still present; implementing that repair requires resolving the API or presentation decision described in the evidence report. Fixtures use synthetic local destinations and cookies; no saved authentication callbacks were used.
Checklist
This PR is small and focused on compatibility evidence and faithful mocks.
I explained what changed and why (ELI5, user behavior, mechanism and alternatives).
N/A with reason provided for production visual changes.
Self-reviewed for correctness, security and performance.
Cross-platform, SSH/remote and path/shortcut impact considered; actual untested environments are listed.
Full repository lint/typecheck/test/build and remote CI were not all run; focused checks and their exact results are recorded in the evidence report.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
📝 Walkthrough
The change adds Electron fixtures and tests that observe popup creation, navigation, request association, and sandbox behavior across adopted and native creation paths. It adds CI routing for the new test and records investigation results, including known association failures. The supplied documentation states that production routing and persistence schemas remain unchanged.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to b51a2
This PR adds popup compatibility probes, tests and documentation without changing production behavior. No concrete merge-blocking risk was found.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 10 files. (3 skipped: …
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly identifies the browser test scope and the purpose of documenting blocked popup compatibility gates.
Description check
The description is complete and aligned with the template. It explains the user impact, changes, rationale, testing, limitations, and review risks. It does not provide an issue link, but it documents …
Full details: Description check
Explanation
The description is complete and aligned with the template. It explains the user impact, changes, rationale, testing, limitations, and review risks. It does not provide an issue link, but it documents the internal prerequisite and otherwise contains the required information.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 10 files. (3 skipped: 3 unsupported.)
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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.
ELI5
An openerless popup can still inherit browser restrictions that disappear if it is reopened as an ordinary tab. Electron 43.7.8 does not expose enough synchronous information to distinguish the tested restricted and safe script popups, so this prerequisite remains BLOCKED and changes no production routing.
What Changed
Added hidden Electron probes for actual adopted/native script children, restricted iframe controls, native link flags, missing adopted link contents, same-session parents, creation order and an unrelated-window admission reproducer. Replaced the single-listener native app mock with EventEmitter delivery and five explicit expected-failure assertions for the desired no-theft contract, plus a duplicate control. Reused the existing compatibility harness and included the new probe in Node runtime and the existing Linux boundary job.
Why
A passing mock or a fresh callback closure cannot prove that Electron supplies the matching original child. Real probes show that the production native adapter can grant an admission to an unrelated same-session window, and that the restricted/escape script controls have indistinguishable synchronous metadata despite different browser-enforced behavior. Recording the API limits keeps routing changes behind the required gate until the API or presentation tradeoff is explicitly resolved.
Linked Issue
Internal prerequisite to the supplied YouTube reauthentication design. No new issue was opened; the separate WebContentsView architecture investigation is not this change's scope.
Visual Proof
N/A — production behavior and UI are unchanged. The hidden synthetic Electron run observed handler admission before child creation, navigation before
onBeforeRequest, and popup policy attached before the matching child’s first request. It reproduced the native adapter granting a pending admission to an unrelated same-session window while the actual popup received no callback. Restricted and escape-enabled script children exposed identical synchronous handler metadata and preferences even though Chromium blocked form submission only in the restricted child.Testing
Validation: 94 passed and 5 expected contract failures (99 cases) across six files; 51 CI/runtime-routing checks passed; Node typecheck and changed-file code quality passed. Native focus/visible windows, Linux/Windows runtime, SSH/server-hosted authentication, replacement-tab materialization, stress comparison and a fresh YouTube challenge remain unverified.
Review
Do not treat this draft as approval to broaden popup routing. Adopted association, native association, adopted script conversion safety and native script conversion safety are each BLOCKED. No production admission workaround is included.
Agent skill upstream boundary
Notes
The four admission/conversion gates remain blocked. The original YouTube routing defect is still present; implementing that repair requires resolving the API or presentation decision described in the evidence report. Fixtures use synthetic local destinations and cookies; no saved authentication callbacks were used.
Checklist