You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wpt: turn service worker on for more WPT test suites #45331
A-testingB-metaThis issue tracks the status of multiple, related pieces of workC-assignedThere is someone working on resolving the issuegood first issueNewcomer-friendly issues.
Service worker is only turned on for the Streams suite for now, but additional suites with stable results can be identified, and sw turned on for those. Note: this means tests running in the service worker scopes will not error anymore.
How to proceed:
Turn sw one for the suite for which you would like to try this out, like was done here for Streams
Run locally and look for unexpected passes.
Run it multiple times, ensure that the passes are stable
There are actually some service test crashing as well, see here, but I believe the crash actually comes from the shared worker scope test that must have been run right before it. This might also be the problem in the other worker tests that are crashing, and which do not related to service worker.
The reason I believe the above is because the crash is This runtime still has live children., which can only happen in the script-thread, and service worker is unrelated to the script-thread (the problem is that we added shared worker as a kind of dedicated workers in the script-thread as a result of this discussion, but didn't take shutdown into account).
Service worker has already been turned on for the Streams suite, so if that was the problem we'd see intermittent crashes for that suite as well; have we seen any?
I am not aware of intermittency in that test suite. Therefore, I would be comfortable with rolling out this flag further to the other test suites. The PR in question only affects one test anyways, so seems low impact to me.
If this graph works like I think it does, then it shows there is zero intermittency in Streams; this was the case before the service worker features was turned on, and remained so afterwards (the jump is when it was turned on).
A-testingB-metaThis issue tracks the status of multiple, related pieces of workC-assignedThere is someone working on resolving the issuegood first issueNewcomer-friendly issues.
Activity
servo-highfive commentedon Jun 3, 2026
Hi! If you have any questions regarding this issue, feel free to make a comment here, or ask it in Zulip.
If you intend to work on this issue, then add
@servo-highfive: assign meto your comment, and I'll assign this to you. 😄Please read our policy on AI contributions before getting started.
[-]Turn service worker on for more WPT test suites[/-][+]wpt: turn service worker on for more WPT test suites[/+]tests: Enable ServiceWorker in `dom` tests (servo#45353)
TimvdLippe commentedon Jun 9, 2026
@mrobinson raised concerns in #45509 (review)
jdm commentedon Jun 9, 2026
Removing the label until the concerns are resolved.
gterzian commentedon Jun 9, 2026
As I mentioned in zulip, I think those crashes relate not to service worker, but to shared worker, (and the problem was first noted in another zulip thread dedicated to shared worker).
There are actually some service test crashing as well, see here, but I believe the crash actually comes from the shared worker scope test that must have been run right before it. This might also be the problem in the other worker tests that are crashing, and which do not related to service worker.
The reason I believe the above is because the crash is
This runtime still has live children., which can only happen in the script-thread, and service worker is unrelated to the script-thread (the problem is that we added shared worker as a kind of dedicated workers in the script-thread as a result of this discussion, but didn't take shutdown into account).Service worker has already been turned on for the Streams suite, so if that was the problem we'd see intermittent crashes for that suite as well; have we seen any?
TimvdLippe commentedon Jun 9, 2026
I am not aware of intermittency in that test suite. Therefore, I would be comfortable with rolling out this flag further to the other test suites. The PR in question only affects one test anyways, so seems low impact to me.
gterzian commentedon Jun 9, 2026
If this graph works like I think it does, then it shows there is zero intermittency in Streams; this was the case before the service worker features was turned on, and remained so afterwards (the jump is when it was turned on).
gterzian commentedon Jun 9, 2026
The fix for shared worker, which is unrelated to this issue, is discussed at #45088 (review).
script: Enable serviceworker flag for CSP tests
script: Enable serviceworker flag for CSP tests (servo#46279)
Muhamad-Sobhi commentedon Jul 5, 2026
@servo-highfive: assign me
I'd like to try turning on service worker for tests/wpt/tests/url
servo-highfive commentedon Jul 5, 2026
Hey @Muhamad-Sobhi! Thanks for your interest in working on this issue. It's now assigned to you!