[whatwg/fetch] Integrate Document-Isolation-Policy with Fetch (PR #1981)

Companion PR to [whatwg/html PR](https://github.com/whatwg/html/pull/13326) (integrating `Document-Isolation-Policy` from
https://wicg.github.io/document-isolation-policy/).
### Summary of changes
- Replicates the effect of on subresource fetches of COEP (credentialless, require-corp) for Document Isolation Polciy.
- Adds reporting when Document Isolation Policy blocks subresource loads.

*(Note: `TEMP` commit adds temporary HTML anchors to `fetch.bs` so Bikeshed previews stay green; drop
that commit after the companion `whatwg/html` PR merges and spec-data updates.)*

### Known pre-existing caveat
As with `Cross-Origin-Embedder-Policy: credentialless`, `HTTP-network-or-cache fetch` does not yet
explicitly separate HTTP cache entries stored from credentialed vs. uncredentialed fetches
(see `html/document-isolation-policy/credentialless-cache.tentative.window.js`).
### Merge order
1. Merge the companion `whatwg/html` PR first so its exported definitions land in HTML/Shepherd.
2. Wait for Bikeshed spec-data rebuild, drop the temporary `<pre class=anchors>` commit, and merge this PR.
### Checklist
- [ ] At least two implementers are interested (and none opposed):
   * Chromium (implemented)
   * WebKit / Gecko: …
- [ ] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * https://github.com/web-platform-tests/wpt/tree/master/html/document-isolation-policy (currently `.tentative`; follow-up WPT PR will remove `.tentative`)
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
   * Deno: N/A
- [ ] [MDN issue](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) is filed: …
- [x] The top of this comment includes a [clear commit message](https://github.com/whatwg/meta/blob/main/COMMITTING.md) to use.


<!--
    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/1981.html" title="Last updated on Nov 25, 2026, 3:22 PM UTC (35ba64f)">Preview</a> | <a href="https://whatpr.org/fetch/1981/d7fc0fd...35ba64f.html" title="Last updated on Nov 25, 2026, 3:22 PM UTC (35ba64f)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Integrate Document-Isolation-Policy with Fetch
  * Add Camille Lamy to Acknowledgments
  * TEMP: Add temporary HTML anchors for Bikeshed preview before HTML PR lands

-- File Changes --

    M fetch.bs (215)

-- Patch Links --

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

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

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

Received on Wednesday, 25 November 2026 15:22:55 UTC