Skip to content

feat(chromium): improve URL handling for WebSocket endpoint retrieval #36098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2025

Conversation

zzxwill
Copy link
Contributor

@zzxwill zzxwill commented May 27, 2025

The code now uses the URL constructor to handle the endpoint URL more robustly. This change ensures that the path is correctly formatted by appending a trailing slash and the 'json/version' segment, avoiding potential errors from manual string manipulation. This improves reliability when retrieving the WebSocket endpoint from the provided URL.

Fix #36097

The code now uses the URL constructor to handle the endpoint URL more robustly. This change ensures that the path is correctly formatted by appending a trailing slash and the 'json/version' segment, avoiding potential errors from manual string manipulation. This improves reliability when retrieving the WebSocket endpoint from the provided URL.

Fix microsoft#36097

This comment has been minimized.

This comment has been minimized.

Copy link
Contributor

Test results for "tests 1"

12 flaky ⚠️ [chromium-library] › library/browsercontext-reuse.spec.ts:256:1 › should work with clock emulation @chromium-ubuntu-22.04-node18
⚠️ [chromium-library] › library/browsercontext-reuse.spec.ts:256:1 › should work with clock emulation @chromium-ubuntu-22.04-node20
⚠️ [chromium-library] › library/browsercontext-reuse.spec.ts:256:1 › should work with clock emulation @chromium-ubuntu-22.04-node22
⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:986:7 › cli codegen › should not throw csp directive violation errors @firefox-ubuntu-22.04-node18
⚠️ [firefox-page] › page/page-wait-for-function.spec.ts:104:3 › should work with strict CSP policy @firefox-ubuntu-22.04-node18
⚠️ [chromium-library] › library/browsercontext-reuse.spec.ts:256:1 › should work with clock emulation @ubuntu-22.04-chromium-tip-of-tree
⚠️ [chromium] › headerView.spec.tsx:46:1 › should toggle filters @web-components-html-reporter
⚠️ [webkit-library] › library/browsercontext-device.spec.ts:45:5 › device › should scroll to click @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › library/ignorehttpserrors.spec.ts:30:3 › should isolate contexts @webkit-ubuntu-22.04-node18
⚠️ [webkit-library] › library/trace-viewer.spec.ts:1309:1 › should pick locator in iframe @webkit-ubuntu-22.04-node18
⚠️ [webkit-page] › page/page-screenshot.spec.ts:345:5 › page screenshot › should work while navigating @webkit-ubuntu-22.04-node18
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @windows-latest-node18-1

39281 passed, 808 skipped
✔️✔️✔️

Merge workflow run.

@zzxwill
Copy link
Contributor Author

zzxwill commented May 28, 2025

@pavelfeldman Thank you for your suggestion. Now all UTs passed.

@pavelfeldman pavelfeldman merged commit eb5e3b3 into microsoft:main May 28, 2025
29 checks passed
@zzxwill zzxwill deleted the cdp branch May 29, 2025 06:09
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.

[Bug]: CDP url doesn't work for url with parameter
2 participants