Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#4705·k6

k6/Browser Shared Worker support?

Author: camandersonCreated Apr 17, 2025Updated Sep 16, 2026
Labelsfeatureawaiting usertriagearea: browser

Brief summary

I have a large NodeJS MFE webpage that relies on a shared worker to validate auth before allowing the user into the landing page. When attempting to setup k6/browser perf tests for our application, I have been able to successfully navigate to the webpage, automatically get redirected to the auth flow, k6 is able to automate the auth inputs to complete the auth flow, get redirected back to the desired webpage, but then gets hung up waiting for the shared worker to validate the authentication.

I am able to confirm the hangup is due to the shared worker because if I am actively inspecting the worker through chrome://inspect/#workers and open the sso-worker's DevTools inspect page, when I reload the webpage, everything works as expected.

Overall, I am wondering if shared workers have no support or compatibility with k6/browser currently, the docs have no reference to them so I cannot confirm one way or the other. We are able to fully e2e test our application through Playwright with no loading issues related to our shared worker. We are very unsure what could be causing this hangup because everything LOOKS like it is a regular Chrome session.

k6 version

k6 v1.0.0-rc1 (go1.24.1, darwin/arm64)

OS

macOS 15.3.2

Docker version and image (if applicable)

No response

Steps to reproduce the problem

Here is the MVP repo to replicate the issue, steps to reproduce are listed in the README.

Expected behaviour

  • Navigate to webpage, redirect to auth, complete auth workflow, redirect back to webpage, fully load landing page with no hangup.

Actual behaviour

  • Navigate to webpage, redirect to auth, complete auth workflow, redirect back to webpage, hang on loading screen because shared worker does not seem to be fully initialized/operable in unless I manually inspect it.

Source: grafana/k6

View original on GitHubView discussion on GitHub