Repository navigation
fix(browser): keep native pages contained in their pane - #5116
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 4 Skipped Deployments
|
|
Selected evidence: Incomplete · 12/12 tests · 18/18 assertions · 8 images Commit Coverage gaps: Required verification: incomplete. Selected evidence does not satisfy all required specs. No authenticated current-head required plan is available. |
b947b18 to
efb0eae
Compare
OpenWork evidence
Run details · Open the preview to inspect evidence and sandbox options. |
There was a problem hiding this comment.
Warden clearance. Complete security and confidentiality review of efb0eae0d13d06dc0c78a41aea7a811e0ebeb736 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run
Warden: approvedNo high or medium security findings and no confidentiality findings. Reviewed |
There was a problem hiding this comment.
Warden clearance. Complete security and confidentiality review of 1ca613c4c993363a96d552f413dd7245e95ce886 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run
1ca613c to
5702a14
Compare
There was a problem hiding this comment.
Warden clearance. Complete security and confidentiality review of 5702a14ef9a9deccf5a222a8f5dc5ec6fb6611d4 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run
Signed-off-by: Jalil <[email protected]>
Signed-off-by: Jalil <[email protected]>
Signed-off-by: Jalil <[email protected]>
Signed-off-by: Jalil <[email protected]>
#5159 renamed the root palette placeholder to "Search actions and settings…". Signed-off-by: Jalil <[email protected]>
5702a14 to
c74d56d
Compare
Electron 43.5 restores a page's view size when a DevTools client that set Emulation.setDeviceMetricsOverride disconnects without clearing it (electron/electron#52946). Since dev moved from Electron 43.2.0 to 43.7.7 (#5535), closing the capture client while building the world undid the leftover 1440x900 viewport before the test body ran, so the spec failed before the tab was selected. Keep the client connected until the world is disposed. A client that stays connected still leaves the page laid out at its capture size inside the panel, which is the case selecting the tab must recover. Signed-off-by: Jalil <[email protected]>
There was a problem hiding this comment.
Warden clearance. Complete security and confidentiality review of fac4b36b86a9aed6a00f31c001b0fadaf95796a0 found no high or medium security findings and no confidentiality findings. Any new push dismisses this approval. Analysis run
Summary
Keep the built-in browser from covering chat when its container is clipped, hidden, replaced, or resized. Electron paints the native WebContentsView above the app renderer, so CSS overflow alone cannot contain it.
Existing layout and controls are unchanged; the existing geometry synchronization path is reused rather than introducing another browser layer (DESIGN.md P5).
Validation
Incomplete — focused checks and a real macOS containment capture pass; the full Electron regression journey remains pending.
node --test apps/desktop/electron/browser-panel.test.mjs: 94 passed, 0 failed.bun test --isolate ./apps/app/src/react-app/domains/session/panel/browser-bounds-sync.test.ts: 8 passed, 0 failed. DOM rectangles are synthetic; this is not native rendering proof.git diff --check: passed.pnpm --dir evals typecheck: 487 source files passed. The first run reported 12 errors from existing usage-meter assertions; this PR includes a one-line type-only addition of the standardprogressbarrole to TargetRole to resolve them without weakening assertions.Screenshot
Captured from clean PR head
76bb04a5din an isolated macOS Electron 43.2.0 test instance. This is a native window-only capture, including the actual WebContentsView—not a renderer-only image or a composite (DESIGN.md P10). The content is example.com alongside a synthetic, unsent draft; no personal profile or private conversation is shown.After resizing with the divider keyboard controls, the native browser and page viewport both measured 447 × 721, matched the live content container, and stayed inside the side pane below its toolbar. The image was visually inspected and the isolated test process was stopped. This confirms the pictured state, not every transition.
Remaining proof
pnpm evals:e2e browser-panel-viewport-recoveryon this candidate; the extended journey was not executed here.No release or deployment is included.