Repository navigation
test(browser): create probe body before starting frame requests - #23730
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe generated probe page now wraps its script in a body element. Previously, the markup placed the script after the title and ended after the script tag. Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to The change wraps the probe script in a body so body-dependent setup can run after the body is created. No merge-blocking impact is apparent. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
|
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Explicit
<body>in the probe fixture —probePage()now wraps its bootstrap script in<body>…</body>, sodocument.bodyexists before the script's async IIFE reaches thedocument.body.append(...)calls for the frame, cross-context frame, and Blob frame. The parser creates the body element on the<body>start tag, ahead of the following inline script, which removes the parser/network race outright — no assertion, retry, or timeout changes.
The sibling childPage() and desktopPeerPage() documents don't touch document.body, and no test pins the exact HTML string, so the change is correctly scoped to the one page that needed it.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
Create the browser test page's body before its script tries to add frames to it.
What Changed
The identity probe's HTML now explicitly opens
<body>before its bootstrap script. Previously the script ran in the head and relied on its first network request taking long enough for the parser to create an implicit body.Why
CI failed with
Cannot read properties of null (reading 'append')in the fallback-disabled control. An explicit body removes the parser/network race directly, without retries, longer timeouts, or changes to the identity assertions.Linked Issue
CI failure: https://github.com/stablyai/orca/actions/runs/36498103658/job/109183790899
Visual Proof
N/A — test fixture HTML only; no product UI change.
Testing
Review
Only the shared probe document changes. Browser identity handling and all captured-context assertions are unchanged.
Agent skill upstream boundary
Checklist