[w3c/ServiceWorker] Remove redundant origin check in unregister algorithm (PR #1818)

This removes the first step of the Unregister algorithm, which threw a "SecurityError" DOMException if the origin of the job's scope URL did not match the job's client's origin.

This check is redundant because the scope URL is derived directly from the ServiceWorkerRegistration object itself. For this check to fail, the ServiceWorkerRegistration would have had to be exposed in a cross-origin client context, which is already prevented by the platform.

Fixes #1305


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://pr-preview.s3.amazonaws.com/yoshisatoyanagisawa/ServiceWorker/pull/1818.html" title="Last updated on Mar 6, 2026, 9:07 AM UTC (93d977e)">Preview</a> | <a href="https://pr-preview.s3.amazonaws.com/w3c/ServiceWorker/1818/5614d6f...yoshisatoyanagisawa:93d977e.html" title="Last updated on Mar 6, 2026, 9:07 AM UTC (93d977e)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/ServiceWorker/pull/1818

-- Commit Summary --

  * Remove redundant origin check in unregister algorithm

-- File Changes --

    M index.bs (3)

-- Patch Links --

https://github.com/w3c/ServiceWorker/pull/1818.patch
https://github.com/w3c/ServiceWorker/pull/1818.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/pull/1818
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/ServiceWorker/pull/1818@github.com>

Received on Friday, 6 March 2026 09:07:55 UTC