[whatwg/fetch] Throw `SecurityError` on non-trustworthy URLs in `fetchLater` (PR #1858)

Per https://github.com/web-platform-tests/wpt/blob/c009ca2fa7d311b1a257222aa0f9fd7706ffa4d6/fetch/fetch-later/basic.https.window.js#L54-L59 it should not throw a `TypeError`, but a `SecurityError` instead.


<!--
    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://whatpr.org/fetch/1858.html" title="Last updated on Sep 28, 2025, 8:54 AM UTC (e869c75)">Preview</a> | <a href="https://whatpr.org/fetch/1858/5a015d1...e869c75.html" title="Last updated on Sep 28, 2025, 8:54 AM UTC (e869c75)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1858

-- Commit Summary --

  * Throw `SecurityError` on non-trustworthy URLs in `fetchLater`

-- File Changes --

    M fetch.bs (2)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1858.patch
https://github.com/whatwg/fetch/pull/1858.diff

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

Message ID: <whatwg/fetch/pull/1858@github.com>

Received on Sunday, 28 September 2025 08:54:44 UTC