This test loads a SW in a first-party context and gets the SW's (randomly) generated ID. It does the same thing for the SW but in a third-party context and then confirms that the IDs are different.

Summary

Harness status: Error

Test named 'ServiceWorker's getRegistrations() is partitioned' specified 1 'cleanup' function, and 1 failed.
TypeError: Cannot read properties of undefined (reading 'unregister')
    at https://www1.wpt.live/service-workers/service-worker/partitioned-getRegistrations.tentative.https.html:23:27
    at https://www1.wpt.live/resources/testharness.js:3069:34
    at forEach (https://www1.wpt.live/resources/testharness.js:4709:26)
    at Test.cleanup (https://www1.wpt.live/resources/testharness.js:3064:9)
    at Test.done (https://www1.wpt.live/resources/testharness.js:3028:14)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2695:18)
    at https://www1.wpt.live/resources/testharness.js:2731:35

Found 1 tests

Details

ResultTest NameMessage
FailServiceWorker's getRegistrations() is partitionedpromise_test: Unhandled rejection with value: object "TypeError: Cannot read properties of undefined (reading 'installing')"
Error
    at get_stack (https://www1.wpt.live/resources/testharness.js:4617:21)
    at new AssertionError (https://www1.wpt.live/resources/testharness.js:4610:22)
    at assert (https://www1.wpt.live/resources/testharness.js:4594:19)
    at Test.<anonymous> (https://www1.wpt.live/resources/testharness.js:764:29)
    at Test.step (https://www1.wpt.live/resources/testharness.js:2684:25)
    at https://www1.wpt.live/resources/testharness.js:2731:35
Asserts runNo asserts ran