Repository navigation
refactor(browser): unify browser mutation routes - #129303
Merged
steipete merged 1 commit intoAug 25, 2026
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 25, 2026 12:07
steipete
deleted the
codex/cleanup20k-browser-storage-runtime-owner-20260825
branch
August 25, 2026 12:28
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
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.
What Problem This Solves
The shipped Browser storage/device HTTP owner duplicated common guarded mutation scaffolding across its cookies, storage, credentials, emulation, and related action routes. Repeated handlers obscured the intentionally different security policies for current-tab reads versus explicit mutations.
Why This Change Was Made
The existing private Browser route owner now shares one canonical mutation-registration flow while preserving all 15 HTTP route identities, features, leases, abort signals, validation, credentials redaction, cookie result shapes, and separate SSRF guard policies. The existing route test gains direct security and lifecycle coverage instead of replacing real behavior with mocks.
User Impact
Authenticated browser storage and device commands behave exactly as before. Current-tab cookie/storage reads continue rejecting private navigation, while intentionally allowed mutations keep their original policy. Credential secrets are never echoed, and cancellation does not destroy the selected browser tab.
Evidence
git diff --checkpassed.