Repository navigation
feat: pass connection requests to context admission policies - #5657
Conversation
|
No actionable comments were generated in the recent review. WalkthroughThe configuration hooks now accept an optional ChangesRequest context in browser bridges
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant Client
participant BrowserProxy
participant ConfigHooks
participant UpstreamWebSocket
Client->>BrowserProxy: WebSocket request with URL and Origin
BrowserProxy->>ConfigHooks: pass request to policy hooks
ConfigHooks-->>BrowserProxy: return policy result
BrowserProxy->>UpstreamWebSocket: connect without forwarding client headers
Possibly related PRs
Suggested reviewers: Merge Risk:
|
|
Ready for human review at 5eef1b0. Both URL/Origin findings are fixed and their review threads are resolved; CodeRabbit reports no new actionable comments for this head. All applicable current-head checks passed, including Chrome, Chromium, Firefox, WebKit, Edge, multi-browser, leak-check, lint, formatting and CodeQL. The optional Dependabot automerge job was skipped. GitHub reports no merge conflict; human approval remains outstanding. Regression evidence: the nine affected transport cases failed before the fix and passed afterward. The targeted native suite passed 154 tests with zero pending; independent review reproduced that result using Chrome 156 in place of the pinned Chromium build. Separate browser/page legacy-proxy controls passed locally. The full suite was not rerun locally, and downstream application integration is not claimed. No findings were rejected. |
🤖 I have created a release *beep* *boop* --- ## [2.59.0](v2.58.3...v2.59.0) (2026-11-04) ### Features * pass connection requests to context admission policies ([#5657](#5657)) ([087373b](087373b)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: browserless-actions-bot[bot] <186328842+browserless-actions-bot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Changes
Pass the connection's
Requestto the optional Config context-policy hooks in the CDP browser/page bridges and the Playwright bridge. Existing overrides can continue to omit the new optional parameter, and the default hooks retain their behavior.Add coverage for request forwarding and isolation between connections through Playwright
newContext,newContextForReuse, and CDP session messages.Validation
npm ci --ignore-scripts, TypeScript build, ESLint, and formatting checks passed on Node 26.13.0.The full test suite was not rerun on this candidate. The local dependency installation did not run lifecycle scripts. Validation covers SDK hooks and browser bridges, not downstream application integration.
Summary by CodeRabbit