GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(browser): harden engine extensions, session tab isolation, root hygiene, and emulation bounds by Hona · Pull Request #245 · anomalyco/opencode-rune

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Closes core Phase 1 security hardening items from notes/review-browser-policy.md, notes/for-dax.md §0, and our Phase 0 CEF 156 empirical spike.

Changes

  • Disable default CEF extensions (apps/browser-engine/src/engine.rs): Pass --disable-extensions so CEF's Chrome bootstrap never scans host OS extension registries (external_registry_loader_win.cc) on startup.
  • Per-session BrowserTab isolation (apps/desktop/src/plugin_host/native/browser/scope.rs, browser.rs, viewport.rs): Enforce TabScope across every Browser:* (Tabs, Get, List, Active, Selected, Focused, NormalizeUrl, OpenAsync) and BrowserTab:* (Url, Title, Loading, Files, Viewport, SetViewport, Navigate, Back, Forward, Reload, Stop, SetZoom, Inspect, Highlight, Show, Close, DevtoolsAsync, SiteCookiesAsync, ClearSiteAsync, ReadFileAsync) host binding so MCP tool coroutines and third-party plugins cannot read or mutate another session's tabs.
  • Workspace root hygiene (crates/browser-policy/src/lib.rs, apps/browser-engine/src/{engine,profile}.rs, apps/desktop/src/surfaces/browser/mod.rs): Refuse /, Windows drive roots (C:\), UNC share roots (\\server\share), the user's home directory, and top-level home system folders (Desktop, Documents, Downloads, AppData, AppData/Local, AppData/Roaming, Library) as file_roots, and give tabs with no owning session empty file_roots.
  • Emulation bounds & reconnect (apps/browser-engine/src/engine/emulation.rs, crates/browser-pane/src/client.rs): Clamp width/height (1..=4096) and finite scale (0.25..=4.0) inside the engine, and re-send active HostMsg::Emulate on EngineMsg::Ready and pending tab flush.

Verification

  • Live CEF 156.0.26 sidecar run: 0 registry extension scans (stderr: ""), broad roots (C:\, %USERPROFILE%, %USERPROFILE%\Desktop) & COM¹ refused, narrow workspace allowed, out-of-range Emulate clamped cleanly (1x4096 @ 0.25).
  • pwsh scripts/guardrails.ps1: 5/5 passed.
  • cargo check --workspace (farm): passed.
  • pwsh scripts/web.ps1 -Check (farm): passed.
  • cargo build --locked --manifest-path apps/browser-engine/Cargo.toml --bins (farm): passed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
fix(browser): harden engine extensions, session tab isolation, root h…
f41dd5c
…ygiene, and emulation bounds

- Pass `--disable-extensions` in `apps/browser-engine/src/engine.rs` so CEF's
  Chrome bootstrap never scans host OS extension registries
  (`external_registry_loader_win.cc`) on startup.
- Enforce per-session `BrowserTab` ownership across all `Browser:*` and
  `BrowserTab:*` host bindings via `apps/desktop/src/plugin_host/native/browser/scope.rs`
  (`review-browser-policy.md` §4, `for-dax.md` §0): MCP tool coroutines and
  third-party plugins cannot read, mutate, inspect, resize, navigate, or close
  another session's tabs.
- Reject overly broad workspace roots (`/`, Windows drive roots, UNC share roots,
  the user's home directory, and top-level system directories) in both
  `crates/browser-policy` (`is_safe_workspace_root`) and `apps/browser-engine`,
  and give tabs without an owning session empty `file_roots` (`review-browser-policy.md` §5).
- Bound `width`/`height` (`1..=4096`) and finite `scale` (`0.25..=4.0`) inside
  `apps/browser-engine/src/engine/emulation.rs`, and re-send active `HostMsg::Emulate`
  state on engine reconnect (`EngineMsg::Ready`) and pending tab flush (`for-dax.md` §0).
@Hona
Hona merged commit 5f83182 into dev Nov 20, 2026
@Hona
Hona deleted the ws1-phase1 branch November 20, 2026 07:23
@github-actions

github-actions Bot commented Nov 20, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Hona added a commit that referenced this pull request Nov 20, 2026
@Hona
docs(sync): fold #278-#293, add browser Reviewed column, and add UP-1…
e9b29cd
…18..UP-122 (#295)

- Fold verified fleet PRs #278, #285, #287, #288, #289, #290, #291, and
  #293 (Rune dc8f7f72: #1301, #1302 focus rescue verified Send+Enter -> effort)
  into docs/upstream-sync/ledger.{json,md}
- Close UP-062 packaged-default regression (#278), UP-095-UI / UP-100 /
  UP-106 / UP-109 / UP-117 (#285, #289), and PRE-08 (#287); reassign
  UP-115, UP-116, UP-075 to BROWSER-UI
- Add separate Reviewed column for browser rows tracking retrospective
  security reviews on merged PRs (#245, #268, #272, #277, #288, #275, #287,
  #285, #289) and pre-merge holds (#274, #280, #281, #283, #286, #292, #294,
  and BROWSER-TOOLS PR 3+)
- Audit upstream anomalyco/opencode bfee96a859..2002222d13 (+6 commits:
  1 skipped, 5 added: UP-118..UP-122) and refine radar routing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@Hona
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.