Skip to content

fix(browser): intercept file choosers in the renderer and refuse agent CDP into granted OOPIFs - #411

Merged
Hona merged 1 commit into
devfrom
ws1-file-choosers-and-oopif-grants
Nov 21, 2026
Merged

Hona merged 1 commit into
devfrom
ws1-file-choosers-and-oopif-grants

Conversation

@Hona

@Hona Hona commented Nov 21, 2026

Copy link
Copy Markdown
Member

Two \UP-095\ gaps against official \�9a60d9d/\�4b7cc9a, plus a missing failure string. \ENGINE_REVISION\ stays \4\ (\stable.json\ publishes \156.0.26-3).

  • Renderer file-chooser intercept (official \ ile-choosers.ts): agent-driven and preview tabs send \Page.setInterceptFileChooserDialog { enabled, cancel }\ on the root session at arm time, on every paused web OOPIF before it resumes, and again on every \SetAgentDriven\ flip. HTML file inputs and File System Access pickers are suppressed inside Blink, not only at CEF's \on_file_dialog. \Page.fileChooserOpened\ raises \FileChooserBlocked, and an in-flight agent command now stops once with official's text ("Agent actions cannot open a native file picker. Use browser.files.upload…").
  • READER-9 fix(browser): refuse controlled-tab actions on Default origins holding inherited grants #319\ follow-up 1 (embedded-frame grants): a controlled \Default\ tab refuses any \TypedCdpCall\ whose target frame (by \ rame_id, \contextId, \objectId, or session root) is on an origin holding an inherited grant, so an agent cannot \Runtime.enable/\Runtime.evaluate\ inside a granted origin's OOPIF under an ungranted top page.
  • \�rowser.passkeys.unrestricted: the refusal feat(browser): add WebAuthn passkey gate and macOS camera/mic usage descriptions #393 sends when \WebAuthn.enable\ fails on Windows now has official's text (\�rrors.ts:40-41) in \ ailure.luau, \mcp.luau, and \�n.json.

Live on blade (\prove-fc-oopif.ts, 3 of 4 runs complete; the fourth was a harness timing miss): agent click on <input type=file>\ -> \Page.fileChooserOpened\ + 1 \ ile_chooser_blocked, no dialog; \Runtime.enable\ on the granted \127.0.0.1\ OOPIF session refused with the inherited-permission message; the ungranted \127.0.0.2\ OOPIF evaluates normally (\CLEAN_FRAME). Engine build + \cargo check -p browser-pane --features engine -p opencode-desktop\ + guardrails pass. Zero test edits, zero .github/\ edits.

@Hona
Hona merged commit d525338 into dev Nov 21, 2026
@Hona
Hona deleted the ws1-file-choosers-and-oopif-grants branch November 21, 2026 05:36
@github-actions

github-actions Bot commented Nov 21, 2026 •

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.

Hona added a commit that referenced this pull request Nov 21, 2026
…interception, request postData fallback, and trace/cpu auto-stop timers (#446)

* feat(browser): add OOPIF pointer/upload/drop coords, HTML5 drag interception, request postData fallback, and trace/cpu auto-stop timers

* fix(browser-engine): refuse OOPIF UploadFiles into origins with inherited default grants (#411)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant