Skip to content

fix(firefox): network instrumentation misses WebSocket handshakes in Worker#41759

Merged
dcrousso merged 1 commit into
microsoft:mainfrom
dcrousso:fix-41742
Jul 14, 2026
Merged

fix(firefox): network instrumentation misses WebSocket handshakes in Worker#41759
dcrousso merged 1 commit into
microsoft:mainfrom
dcrousso:fix-41742

Conversation

@dcrousso

Copy link
Copy Markdown
Contributor

this is being fixed upstream https://phabricator.services.mozilla.com/D310690

temporarily working around it for now as only HAR uses the request/response info (e.g. headers, status, etc.)

fixes #41742

@yury-s yury-s left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's add a TODO in the code somewhere that says when the code should be removed.

}

ws.requestSent(headers);
if (headers)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's wrap bot request params into requestData to make it clear tat there is no request when it's missing? Otherwise it's not clear why we are not reporting request if the headers are missing

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

…n `Worker`

this is being fixed upstream <https://phabricator.services.mozilla.com/D310690>

temporarily working around it for now as only HAR uses the request/response info (e.g. headers, status, etc.)
@dcrousso dcrousso merged commit dcc8d79 into microsoft:main Jul 14, 2026
48 of 50 checks passed
@dcrousso dcrousso deleted the fix-41742 branch July 14, 2026 05:24
@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

7760 passed, 1249 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

6 flaky ⚠️ [chromium-library] › library/video.spec.ts:275 › screencast › should capture navigation `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:717 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/video.spec.ts:476 › screencast › should capture static page in persistent context @smoke `@chromium-ubuntu-22.04-node24`
⚠️ [chromium-library] › library/video.spec.ts:717 › screencast › should work with video+trace `@chromium-ubuntu-22.04-node22`
⚠️ [firefox-library] › library/heap.spec.ts:223 › should not leak workers `@firefox-ubuntu-22.04-node20`
⚠️ [playwright-test] › ui-mode-trace.spec.ts:827 › should update state on subsequent run `@macos-latest-node22`

49559 passed, 1168 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.

[Bug]: Firefox: opening a WebSocket inside a Web Worker kills the page session with "Error: Assertion error" (regression in 1.61.0)

2 participants