Skip to content

fix(browser): pages reach SSRF-blocked addresses by navigating after an action's 250 ms guard - #198452

Merged
hannesrudolph merged 7 commits into
openclaw:mainfrom
daniel-lxs:openclaw-act-page-reaches-a
Nov 15, 2026
Merged

hannesrudolph merged 7 commits into
openclaw:mainfrom
daniel-lxs:openclaw-act-page-reaches-a

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Closes #198317

Builds on #198638, which moved document interception from each invocation to the tab. This PR adds the standing policy on top of it: about 190 added source lines, most of them in the new pw-session-navigation-standing.ts.

What Problem This Solves

Fixes: a page reaches an address the browser SSRF policy blocks by navigating more than 250 ms after a browser action, because document interception ends when each action's guard window does.

User Impact

User impact: in a tab OpenClaw has navigated or acted on, a document the page requests between actions is checked against the configured browser.ssrfPolicy and stopped before any request leaves the browser when the policy denies it.

What someone using that browser notices:

  • Typing a blocked address into such a tab (or reloading or going back to one) shows Chrome's blocked page instead of loading it. To open it anyway, use a new tab or add the host to browser.ssrfPolicy.allowedHostnames.

    Chrome's "localhost is blocked" page after typing a blocked address into the tab the agent used

  • A page keeps loading documents from the origin it is already on, so a localhost dev page opened under the automatic loopback exception can reload itself and follow its own links between tool calls. A different loopback port is a different origin and is stopped.

  • A blocked navigation that a page script requested is cancelled silently and the tab keeps its page.

  • Each document request in such a tab makes one round trip through the Gateway before it loads, between actions as well as during them.

Not covered, and listed in the docs: a popup's first request, Service Worker traffic, fetch/XHR and other subresources, tabs OpenClaw has not navigated or acted on, the time the Gateway's connection to the browser is down (a tab is covered again from its next guarded action), and speculation-rules prefetch on browsers OpenClaw did not launch.

Why This Change Was Made

  • Interception stays on for the tab's lifetime instead of only while an invocation claims it. With no claim, the tab's standing policy decides each document: the configured policy without invocation-scoped grants such as the loopback exception, which end with the invocation. Interception stays document-only, so CORS preflights and subresources stay on Chromium's native path.
  • The standing policy is one small module, pw-session-navigation-standing.ts; the fence itself changes by about 45 lines.
  • The fence never sends Fetch.disable, so the extension relay's refusal of Fetch.enable during a release, which refactor(browser): keep one document-interception session per tab #198638 handles, has no release to meet here. A claim only starts document tracking (Network.enable), after the last release is answered, once per target while the tab is claimed. It waits for that answer no longer than the navigation timeout, then fails without starting tracking; having started nothing, it only gives up its claim. A claim whose tracking fails to start fails its invocation.
  • Same-origin documents are allowed because a page can already fetch() its own origin, so they reach nothing new.
  • Whether a denial shows the blocked page or is cancelled silently depends on whether the navigation looks browser-initiated (no page request event, no referrer, top-level). A page can imitate that, so the check only picks how the denial looks; the request is denied either way.

One tradeoff for reviewers: the same-origin allowance is checked ahead of blockedHostnames. A tab already on a host that a config reload later blocks keeps loading that origin. main enforces nothing between actions, so this is not a widening against main.

Evidence

  • Reproduction: a real-Chromium test presses a key, and the page navigates to a denied address 500 ms later while a fixture server at that address counts requests. On main the server receives the document and it becomes the tab's page. With this change it receives nothing and the tab keeps its page.

  • Through a Gateway with a real agent and model, across an upgrade from v2026.11.3 (one run in a clean macOS VM, headed managed browser):

    • Setup: the Gateway of release 2026.11.3 (from npm) runs with browser.ssrfPolicy: { dangerouslyAllowPrivateNetwork: false, allowedHostnames: ["127.0.0.1"] }. One turn through openclaw agent with Claude Sonnet 5.5 has the agent use the browser tool to load a page, press a key, wait 3 seconds and take a snapshot. The page navigates to a policy-denied address 500 ms after the key press, and a fixture server at that address counts requests.

    • On 2026.11.3: the denied server received the document and the tab ended on it.

    • Upgrade: the Gateway is stopped, this PR's build runs doctor --fix on the same state and config, and starts on them. The policy settings are the same before and after, and the browser profile that 2026.11.3 created is reused.

    • Same turn on this PR's build: no request reached the denied server and the tab kept its page. The agent's reply: "pressing a succeeded. The URL didn't change". The Gateway log has Stopped a document the page requested between browser actions.

      2026.11.3, after the agent turn:   denied server requests=2; tab "Denied page reached" http://localhost:DENIED_PORT/denied
      policy settings under 2026.11.3:   {"dangerouslyAllowPrivateNetwork":false,"allowedHostnames":["127.0.0.1"]}
      policy settings after doctor --fix: {"dangerouslyAllowPrivateNetwork":false,"allowedHostnames":["127.0.0.1"]}
      this PR, after the agent turn:     denied server requests=0; tab "Source page" http://127.0.0.1:SOURCE_PORT/
      
    • Manual navigation afterwards, typed into the real address bar of that upgraded profile's window:

      • The denied address in the tab the agent used: Chrome's blocked page (the screenshot under User Impact), no request reached the server.

      • An allowed address in the same tab loads:

        An allowed address typed into the tab the agent used loads

      • The denied address in a tab OpenClaw never navigated or acted on loads, as the limits above say:

        The denied address typed into a tab OpenClaw never used loads

    • The model calls leave the VM through a forwarder that adds the API key outside it, so no key is in the VM. The prompt asks for navigate in the existing tab, because 2026.11.3 refused open on a headed managed browser under this explicit strict policy.

  • Through the production extension relay: real Chromium 156 with the bundled extension 2.3.0 loaded unpacked and paired with the Gateway's relay, in a clean macOS VM. The relay and the extension are unmodified; a tap on the relay's client socket in the test records each Fetch/Network enable and disable request and its answer. A fixture server at a policy-denied address counts requests.

    • A key press makes the page navigate to the denied address 500 ms after the action returned: no request reached the server and the tab kept its page.

    • Back-to-back key-press actions on one tab, the second making the page navigate to the denied address, and a second action started at the moment the first action's release reached the relay: blocked in 6 of 6 rounds, no request reached the server.

    • Each tab gets one Fetch.enable and no Fetch.disable; between actions only Network.disable and Network.enable cross the relay, the enable after the disable is answered.

      2222.0ms  client -> relay  Fetch.enable #256
      2222.9ms  relay -> client  Fetch.enable #256 answered
      2482.6ms  client -> relay  Network.disable #262
      2483.3ms  relay -> client  Network.disable #262 answered
      2483.7ms  client -> relay  Network.enable #263
      B rejected: Navigation blocked ...; denied server requests=0; tab kept its page
      
  • Live tests (real Chromium over direct CDP): 34 pass: the between-actions suite (5), redirect authority (12), page-cancelled interception (3), download policy (7), current-document download (5) and native CORS (2). Three native-CORS cases need 127.0.0.2, which macOS does not route; they time out there on main as well.

  • Unit tests: 195 of 195 pass in the eight browser test files that cover the fence, its callers and the navigation guard, including a release answered late, a release never answered, a claim whose tracking fails to start, and the dashboard navigation test. That test holds each navigation attempt at its fence preparation, which on this branch is the claim's tracking start because interception stays on for the tab. Targeted typecheck, lint and format are clean.

  • Checked on a prior revision of this change with the same standing-policy logic, not rerun on this head:

    • Independent adversarial runs: 34 page-initiated navigation vectors (top-level, frames, out-of-process and nested iframes, redirects, rapid and overlapping navigations) reached a denied server on an unfenced tab and none did on a fenced one. A loopback port hop, a same-origin redirect to a denied port, and a page imitating a typed navigation were each stopped before any request.
    • Page loads, cross-site iframes, reload and back, CORS preflights, downloads, form POSTs, allowed redirects, and blob:/data:/srcdoc frames behaved between actions as on an unfenced tab.

Not checked: Linux and Windows, and remote-CDP profiles.

@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime security Security documentation extensions: browser size: XL labels Nov 13, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 13, 2026
@clawsweeper

clawsweeper Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: ready, awaiting a maintainer decision.

What this changes

This PR keeps document interception active between browser actions and applies a tab-level destination policy without invocation-scoped grants.

Example: A page navigates to http://localhost:18402/denied 500 ms after a key press under a policy allowing only 127.0.0.1.

  • Before: The action guard has ended, so the denied server receives the request and replaces the source page.
  • After: The standing policy cancels the request before it reaches the server and preserves the source page.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong production-path evidence and a focused implementation support the patch; unresolved product semantics cap overall readiness, and current-head CI has not completed.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Supplied Gateway and real-agent output exercises delayed document navigation across a stable-release upgrade, with zero denied-server requests after the fix; relay traces exercise production transport ordering, and inspected screenshots confirm the manual-navigation outcomes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: A malicious page can send a document request to a policy-denied address after the browser action's guard expires.
Reason: Closing the demonstrated gap has clear value, but expanding enforcement to manual navigation and choosing same-origin precedence changes the deliberately bounded product contract.

Merge readiness

⏳ Ready, awaiting maintainer decision

Keep this PR open: current main retains the reported bypass, and no discrete introduced bug was found; the standing policy still needs an owner decision.

Priority: P0
Reviewed head: 29fa80ae5d4a131aa05ec8f078d00604f232de07
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should agent-used tabs also restrict manual navigation while allowing same-origin documents before hostname-denial checks?
  • Recommendation: Approve the proposed bounded policy: Accept tab-wide manual-navigation enforcement and the same-origin allowance, preserving document-only interception and the documented exclusions.
  • Why: The earlier repair deliberately bounded enforcement, and the merged tab-fence refactor approved the mechanism without changing allowed destinations; the current tradeoffs have contributor rationale but no recorded owner acceptance.

Before merge

None.

Findings

None.

Agent review details

How this fits together

The bundled browser plugin translates Gateway browser operations into Playwright and CDP commands; its tab fence intercepts document requests and either continues or cancels them.

flowchart TD
  A[Gateway browser request] --> B[Resolved navigation policy]
  B --> C[Tab document fence]
  D[Chromium document request] --> C
  C --> E[Active invocation policy]
  C --> F[Standing tab policy]
  E --> G[Continue or cancel request]
  F --> G
Loading

Technical review

Best possible solution:

Keep document enforcement in the existing tab fence, with temporary invocation grants and an explicitly approved standing-policy contract.

Do we have a high-confidence way to reproduce the issue?

Current-main source shows the guard ending and Fetch interception being disabled; contributor-supplied real-Chromium and released-Gateway traces demonstrate the delayed request reaching the denied server, without executing target code during this review.

Is this the best way to solve the issue?

The smallest complete repair is to retain document interception in the existing tab owner and use configured policy between claims; this PR follows that design, preserves native CORS ownership, and explains its intentional policy changes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 669576890a1f.

Provenance checked

  • Interception lifetime and policy ownership changes intended behavior with a stated reason (fix(browser): block interaction-triggered navigation SSRF #104254: The earlier repair bounded interception to an action plus grace to avoid retaining stale routes across later work; the PR explicitly explains why tab ownership now supports standing enforcement.)
  • Tab-owned session, claims, and release ordering keeps the original intent (4c7f087: The merged preparatory refactor gave each tab one interception session and serialized release acknowledgments; this PR retains that owner while separating continuous Fetch interception from claim-scoped Network tracking.)
  • Native CORS and document commitment keeps the original intent (ae3561e: Document-only CDP interception prevents Playwright routing from weakening native CORS and permits committed response bodies to finish; those boundaries remain intact.)
  • Automatic loopback grants keeps the original intent (0901c1d: Unrestricted same-host agents receive invocation-scoped local-preview access without widening stored policy; standing policy is captured before that grant is applied.)
  • Operator-only browser pages keeps the original intent (b2c33ce: Authenticated operator requests may open selected Chrome settings pages while agents cannot; the standing policy does not retain allowOperatorPages.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 0901c1d adds extensions/browser/src/browser/navigation-policy.ts:51 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0901c1d787e3; files: extensions/browser/src/browser/navigation-policy.ts)
  • Agustin Rivera: Raw commit ae3561e adds extensions/browser/src/browser/pw-session-navigation-fence.ts:147 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: ae3561e289dc; files: extensions/browser/src/browser/pw-session-navigation-fence.ts)

PR surface

Source +158, Tests +195, Docs +4. Total +357 across 16 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 8 182 24 +158
Tests 4 222 27 +195
Docs 4 9 5 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 16 413 56 +357

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Root-cause cluster

Relationship: same_root_cause
Canonical: #198317
Summary: This PR implements standing document enforcement for the canonical between-action navigation gap.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

No label changes.

Label justifications:

  • P0: Current main permits page-controlled document requests to explicitly denied destinations after the action guard ends, establishing a destination-policy bypass.
  • merge-risk: 🚨 compatibility: Previously unrestricted manual navigation in agent-used tabs can now show ERR_BLOCKED_BY_CLIENT, while same-origin document loads bypass standing hostname-denial checks.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (6 earlier review cycles)
  • reviewed 2026-11-13T20:56:47.052Z sha 905647c :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-14T04:15:59.678Z sha a4b66c0 :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-14T05:21:04.781Z sha 070917c :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-14T06:21:21.885Z sha dd8554b :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-14T06:29:17.542Z sha dd8554b :: needs real behavior proof before merge. :: none
  • reviewed 2026-11-14T19:03:35.998Z sha dd8554b :: ready, awaiting a maintainer decision. :: none

Reviewed November 14, 2026, 10:23 PM ET / November 15, 2026, 03:23 UTC (Revision 7).

Every guarded navigation or action created its own CDP session for
document interception and tore it down afterwards, so nothing owned a
tab's interception between actions.

The tab now owns the session and its frame targets. Each invocation
registers a claim with its own policy, handler and failure state, and a
paused document goes through the claims present when it arrived.
Interception still runs only while a claim exists: the last release
disables it and the next claim enables it again, so what is allowed or
blocked does not change.

Prepares the standing policy for openclaw#198317.
Document interception ended 250 ms after each browser action, so a page
script that navigated later reached a policy-denied address and replaced
the tab's document (openclaw#198317).

Interception now stays on for the tab's lifetime. With no invocation
claiming the tab, its standing policy decides each document: the
configured policy without invocation-scoped grants such as the automatic
loopback exception. A document from the origin the frame or tab is
already on is allowed, since a page can fetch its own origin anyway. A
denied navigation the page did not request (address bar, reload, back)
shows the browser's blocked page; one a page script requested is
cancelled and the tab keeps its page. A page can imitate a
browser-initiated navigation, so that distinction only picks how the
denial looks.

Not covered: a popup's first request, service workers, fetch/XHR and
other subresources, tabs never navigated or acted on, and the time
OpenClaw's connection to the browser is down.
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 14, 2026
The same change as on the tab fence, applied where interception stays on
between actions and a claim only starts document tracking: disposal
returns after the release is acknowledged, the next claim starts after
that, and a failed start fails the invocation.
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. clawsweeper:intake:bug Preliminary submission classification; full source review pending. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Nov 14, 2026
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 14, 2026
A tab's first claim sent Network.enable twice: once when its target was
set up with a claim present, and again from the claim. A second
invocation joining a claimed tab sent it again too. Each target is now
started once per claimed period and every claim awaits that start; a
release begins a new period. The standing policy takes the invocation's
options itself, which keeps the fence file within its size limit.

The dashboard navigation test holds each navigation attempt at its
fence preparation. Interception stays on for the tab here, so that
preparation is the claim's tracking start. Its session checks follow the
tab-owned session: one session serves every attempt and is detached, with
no listeners left, when the tab closes.
Resolves the conflicts with the merged tab fence (openclaw#198638) in
pw-session-navigation-fence.ts and its test. Main holds the fence this
branch was stacked on; this branch's side keeps interception on for the
tab, starts only document tracking per claim and adds the standing
policy. Main's catch on the paused-document handler is kept around both
the claimed and the standing path.
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. labels Nov 15, 2026
@hannesrudolph
hannesrudolph merged commit c8caba2 into openclaw:main Nov 15, 2026
108 of 112 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
…an action's 250 ms guard (openclaw#198452)

* refactor(browser): keep one document-interception session per tab

Every guarded navigation or action created its own CDP session for
document interception and tore it down afterwards, so nothing owned a
tab's interception between actions.

The tab now owns the session and its frame targets. Each invocation
registers a claim with its own policy, handler and failure state, and a
paused document goes through the claims present when it arrived.
Interception still runs only while a claim exists: the last release
disables it and the next claim enables it again, so what is allowed or
blocked does not change.

Prepares the standing policy for openclaw#198317.

* fix(browser): keep document navigation policy on tabs between actions

Document interception ended 250 ms after each browser action, so a page
script that navigated later reached a policy-denied address and replaced
the tab's document (openclaw#198317).

Interception now stays on for the tab's lifetime. With no invocation
claiming the tab, its standing policy decides each document: the
configured policy without invocation-scoped grants such as the automatic
loopback exception. A document from the origin the frame or tab is
already on is allowed, since a page can fetch its own origin anyway. A
denied navigation the page did not request (address bar, reload, back)
shows the browser's blocked page; one a page script requested is
cancelled and the tab keeps its page. A page can imitate a
browser-initiated navigation, so that distinction only picks how the
denial looks.

Not covered: a popup's first request, service workers, fetch/XHR and
other subresources, tabs never navigated or acted on, and the time
OpenClaw's connection to the browser is down.

* fix(browser): wait for a tab's release before the next claim

The same change as on the tab fence, applied where interception stays on
between actions and a claim only starts document tracking: disposal
returns after the release is acknowledged, the next claim starts after
that, and a failed start fails the invocation.

* fix(browser): fail a claim whose tab release is never answered

The same bound as on the tab fence: a claim waits for the last release's
answer no longer than the navigation timeout, then fails without starting
document tracking over it.

* fix(browser): let a claim that started nothing give up without cleanup

The same change as on the tab fence: a claim that timed out waiting for
the tab's release only drops its claim and fails at the navigation
timeout, instead of running the cleanup of an action that never began.

* fix(browser): start a tab's document tracking once per claimed period

A tab's first claim sent Network.enable twice: once when its target was
set up with a claim present, and again from the claim. A second
invocation joining a claimed tab sent it again too. Each target is now
started once per claimed period and every claim awaits that start; a
release begins a new period. The standing policy takes the invocation's
options itself, which keeps the fence file within its size limit.

The dashboard navigation test holds each navigation attempt at its
fence preparation. Interception stays on for the tab here, so that
preparation is the claim's tracking start. Its session checks follow the
tab-owned session: one session serves every attempt and is detached, with
no listeners left, when the tab closes.
RomneyDa added a commit that referenced this pull request Nov 15, 2026
)

Adapt the upstream standing document policy to the 11.4 Playwright owner. Keep configured policy distinct from invocation grants, drain captured claims, recheck live authority, and retire with the tab or connection. Baseline delayed-navigation leakage reproduced; four patched live scenarios passed. Independent source review found no actionable P0-P2 findings. Remaining local checks defer to fresh full release validation per operator instruction.

(cherry picked from commit c8caba2)

Co-authored-by: Daniel <[email protected]>

Co-authored-by: RomneyDa <[email protected]>

Co-authored-by: vincentkoc <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 17, 2026
Backport the bounded navigation-fence group to release/2026.11.6.
Retire ended Fetch interceptions without losing relay attachments, keep
one document-interception session per tab, and propagate the configured
standing policy without invocation-scoped loopback grants. Preserve
release acknowledgments, navigation timeouts, and current-origin access.

Source-commit: d3d8c1f
Source-commit: 4c7f087
Source-commit: c8caba2

Co-authored-by: Josh Lehman <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 8ae5f6fa9c653eb82c13b9f5689bb38049bc2b88)
RomneyDa added a commit that referenced this pull request Nov 17, 2026
Native Chromium exposed a first-denial warning throwing while resolving
a safe log directory. The unclaimed-document handler swallowed that
exception before Fetch.failRequest, leaving navigation permanently paused.
Keep the policy decision independent of best-effort diagnostics.

Use Playwright commit observation for the blocked-page live assertion;
the global Vitest expect.poll loses its test context on this CDP callback.
The existing five-second assertion deadline is unchanged.

Source-backport: c8caba2
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 4237e403797c8cd52623379e7d8bcb8064ee1f41)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: browser gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security Security documentation size: M status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Browser: delayed document navigation bypasses strict SSRF policy after the 250 ms action guard

2 participants