Skip to content

refactor(browser): allow native page navigation - #167703

Draft
jesse-merhi wants to merge 2 commits into
mainfrom
refactor/browser-navigation-ip-removal
Draft

jesse-merhi wants to merge 2 commits into
mainfrom
refactor/browser-navigation-ip-removal

Conversation

@jesse-merhi

Copy link
Copy Markdown
Member

What Problem This Solves

Allows browser page navigation to use Chromium's native network behavior, including private and local pages, without OpenClaw's page-level IP/DNS restrictions.

User Impact

Opening, navigating, clicking, and downloading can reach private pages and follow redirects. URL scheme and embedded-credential checks remain. Native browser security remains enabled.

browser.ssrfPolicy is retired. Run openclaw doctor --fix to preserve remote CDP endpoint restrictions in browser.cdpPolicy. Those restrictions apply to the browser control connection, not page navigation. Discord media uses Discord-owned policy. Private OpenAI image endpoint permission moves to models.providers.openai.request.allowPrivateNetwork; ambiguous auth routes require explicit operator configuration and receive a migration notice.

Why This Change Was Made

Removes page interception, redirect/subframe guards, quarantine, and network prediction overrides while preserving browser lifecycle, cancellation, ownership, and document authority. Updates callers, migration, documentation, and coverage together.

The test-value pass removes exact generated-source assertions and a pre-aborted wait permutation. Returned evaluator values and consequential in-flight cancellation coverage remain. The cleanup adds no lines and removes 29.

Evidence

  • Independent correctness and standards review covered the rebased implementation; fresh focused review found no issues in the final test cleanup.
  • Final cleanup: node scripts/run-vitest.mjs extensions/browser/src/browser/pw-tools-core.interactions.results.test.ts passed all 9 cases in 17.87 seconds. Formatting and git diff --check passed.
  • Reused validation for unchanged production code: runtime build, changed-code checks, 539 focused browser cases, 20 native Chromium cases, and selected core/Doctor/Discord/image suites. Native proof covered localhost navigation, redirects, click/batch actions, saved download bytes, preview, URL handling, and cancellation. Three native cases were skipped for unavailable environment/network prerequisites.
  • Real Doctor flow persisted the migrated configuration once; restoring the retired preflight logic made that journey fail on the legacy browser setting.
  • Known validation limit: an initial Doctor run hit a native-worker teardown timeout. A same-order diagnostic replay passed without source changes; this does not establish a fix for that timeout. Mocked Discord policy tests do not prove live CDN downloads. Remote image-provider acceptance was not exercised.
  • Documentation links and config examples passed. GitHub CI has not yet been evaluated for this published branch.

@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review blocked

Automated review did not run, so no review verdict was produced.

Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here.

Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update.

Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord gateway Gateway runtime security Security documentation scripts Repository scripts commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling extensions: openai extensions: policy extensions: browser size: XL labels Oct 9, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: discord Channel integration: discord commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: browser extensions: openai extensions: policy gateway Gateway runtime scripts Repository scripts security Security documentation size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant