Repository navigation
Conversation
|
Reproduced on Windows 11, Orca 1.4.226. This also corrects my note on #27309: the page difference I saw there was not about concurrent tabs or machine state. Setup: one tab at a time, created with
So the trigger is broader than cross-site: any new document committed after the page is parked never gets a frame, including a same-site navigation and a reload. A same-document Separately, a page that never navigates can still stop at the lease boundary. The Radix page did so every time with the same document throughout (unchanged One side effect for anyone probing parking the way I did: once evaluate holds paint, an rAF probe sent through |
|
Thanks for checking this. I added same-origin navigation and reload cases and renamed the PR. In local Orca instances on Linux (Electron 43.7.8), all three cases pass with the existing fix and fail at the frame check when I remove the paint hold. I haven't reproduced the Radix case without navigation, so that remains open. You're also right about |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 WalkthroughPriority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
|
Thanks! I think the Radix case without navigation is just normal parking: it stops at the end of the lease like any off-screen tab, and example.com staying live is the odd one. So I wouldn't hold this PR for it. One more data point on 1.4.232 (Windows): input to a page that loaded while its tab was parked gets dropped while the CLI says ok. Keeping off-screen tabs painting is the ask in #27309. |
|
Thanks @DaveDev42, agreed: the Radix case is normal parking. Current This PR would now only cover clients that connect to the |
ELI5
A background browser script can get stuck waiting for a frame after the tab loads a new page. This fix lets the script finish without switching workspaces.
What Changed
Runtime.evaluateandRuntime.callFunctionOnkeep the page drawing until the command finishes. The hold is also released on failure, disconnect, client replacement or teardown.The test now covers cross-site navigation, same-origin navigation and reload after parking. The existing fix passes all three; no further production change was needed.
Why
This reuses the paint hold already used for captures. It keeps the page drawable without focusing it and allows parking again when the script finishes.
Linked Issue
#27309
This handles scripts waiting for frames. Pointer input is covered separately by #27310, which excludes eval.
Visual Proof
N/A. Recording or taking a screenshot can wake the parked page and hide the failure. The test checks frame delivery, form visibility, focus and restored parking.
Testing
Linux, Electron 43.7.8:
pnpm test: 120,435 passed, 27 failed, plus one suite import error. The same failures reproduce on the unchanged PR head.The earlier 73 focused macOS test results still apply to the previous revision; macOS was not rerun here. Windows, mobile and SSH were not tested.
Author
The contributor does not have an X/Twitter account.
AI Disclosure
Codex assisted with implementation and test authoring. The exact model identifier is unavailable in this change record. All reported checks were executed locally.
Review
The tests check that a new document loads after parking. They probe the guest directly before using the patched eval path. Recording, focus emulation and background-throttling overrides are disabled.
Agent skill upstream boundary
Notes
The unchanged Radix page reported in the comment was not reproduced, so that case remains open. The fix does not keep idle pages drawing indefinitely. A script that never finishes retains its paint hold until disconnect or teardown.
Checklist