Repository navigation
fix(browser-engine): no pop-up or native menu off the agent's input - #496
Merged
Merged
Conversation
Agent Input.* (CdpCall, TypedCdpCall, DropFiles) no longer arms the one-pop-up credit and clears any the person left, so a hostile page's handler cannot open tabs off the agent's input past tabs.open's deny rules (official window-open.ts:78-80,106). It also suppresses the native context menu until the person's own press or key (official chromium.ts:2500-2501, nativeMenu). No ENGINE_REVISION bump: dev is 6, published 5.
Hona
added a commit
that referenced
this pull request
Nov 21, 2026
…ut, exact detached_ref, upload cap counts the upload, agent commands clear the pop-up credit (#553) From READER-10's reads of #500, #507 and #496: our helpers' fixed messages pass verbatim only where those helpers run (input.rs); browser.detached_ref matches only our throw (message then newline, as official chromium.ts); the per-tab staged-upload cap counts the incoming upload's bytes; every agent CDP command and upload clears a pop-up credit a person's earlier click left (Input.* also suppresses the native menu). Engine: dev ENGINE_REVISION 6, published 5: no bump.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
READER-10 critical 7 (
notes\review-rd-tools.md).Input.*armedpopup_credit(engine.rs:612,731), so a hostile page'smousedown/keydownhandler could open a new tab to any URL off the agent's input, pastbrowser.tabs.open's server deny rules, with the person's cookies. Agent input (CdpCall,TypedCdpCall,DropFiles) now clears the credit instead; only the person's press or key arms it. Official: the agent's input is never the person's, so a link it opens stays a blocked pop-up (packages/gui-plugins/src/browser/window-open.ts:78-80,106atdb2d889c).menu_suppressed;run_context_menucancels while it is set; the person's next press or key clears it (officialchromium.ts:2500-2501,nativeMenu = falseon agent input, re-armed by user input).ENGINE_REVISION:devis 6, published 5: no bump. A removal of dangerous behaviour: merged on build, read after (orchestrator).