Skip to content

Conversation

@yury-s
Copy link
Member

@yury-s yury-s commented Feb 1, 2026

Add a synchronous method to get the response object if it has already been received, without waiting. Returns null if the response hasn't arrived yet.

Add a synchronous method to get the response object if it has already
been received, without waiting. Returns null if the response hasn't
arrived yet.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@yury-s yury-s force-pushed the add-request-existing-response-api branch from 72f3b01 to e887e0b Compare February 1, 2026 21:47
@yury-s yury-s requested a review from pavelfeldman February 1, 2026 21:48
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 1, 2026

Test results for "MCP"

1 failed
❌ [chrome] › mcp/autowait.spec.ts:19 › racy navigation destroys context @mcp-windows-latest

3819 passed, 145 skipped


Merge workflow run.

this._browserContextDispatcher = scope;
this.addObjectListener(Request.Events.Response, () => this._dispatchEvent('response', {}));
// Push existing response to the client if it exists.
ResponseDispatcher.fromNullable(scope, request._existingResponse());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will create a state where for a request with the response on the server side, response-less request will be created on the client.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds like hasResponse is the only way to make it work w/o fixing channels.

@yury-s yury-s merged commit 2b1c702 into microsoft:main Feb 2, 2026
27 of 32 checks passed
@yury-s yury-s deleted the add-request-existing-response-api branch February 2, 2026 19:09
@github-actions
Copy link
Contributor

github-actions bot commented Feb 2, 2026

Test results for "tests 1"

2 failed
❌ [playwright-test] › reporter.spec.ts:251 › merged › should not have internal error when steps are finished after timeout @macos-latest-node20
❌ [playwright-test] › ui-mode-test-network-tab.spec.ts:301 › should copy network request @macos-latest-node20

5 flaky ⚠️ [chromium-library] › library/inspector/cli-codegen-pick-locator.spec.ts:35 › should update locator highlight `@chromium-ubuntu-22.04-node24`
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1082 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/inspector/cli-codegen-3.spec.ts:226 › cli codegen › should generate frame locators (4) `@firefox-ubuntu-22.04-node20`
⚠️ [webkit-page] › page/page-autowaiting-basic.spec.ts:79 › should await form-post on click `@webkit-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:700 › should indicate current test status `@macos-latest-node20`

34270 passed, 662 skipped


Merge workflow run.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants