Skip to content

docs(http,api): document origin-keyed agent clusters by default - #46305

Merged
Josh-Cena merged 4 commits into
mdn:mainfrom
Kukzze:update-origin-agent-cluster-defaults
Oct 31, 2026
Merged

Josh-Cena merged 4 commits into
mdn:mainfrom
Kukzze:update-origin-agent-cluster-defaults

Conversation

@Kukzze

@Kukzze Kukzze commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Closes #46194

Under WHATWG HTML PR whatwg/html#7617, agent clusters are specified to be origin-keyed by default.

This PR updates the documentation:

  1. \ iles/en-us/web/http/reference/headers/origin-agent-cluster/index.md:
    • Clarifies that modern browsers enable origin-keyed agent clusters by default (?1).
    • Documents \Origin-Agent-Cluster: ?0\ as the explicit opt-out mechanism to relax execution context back to site-keyed isolation.
    • Adds example for \Origin-Agent-Cluster: ?0.
  2. \ iles/en-us/web/api/document/domain/index.md:
    • Clarifies under failures that setting \document.domain\ is ignored by default in modern origin-keyed environments unless explicitly opted out via \Origin-Agent-Cluster: ?0.

cc @domenic for review as offered in #46194.

@Kukzze
Kukzze requested review from a team as code owners October 27, 2026 05:39
@Kukzze
Kukzze requested review from hamishwillee and removed request for a team October 27, 2026 05:39
@github-actions github-actions Bot added Content:WebAPI Web API docs Content:HTTP HTTP docs size/s [PR only] 6-50 LoC changed labels Oct 27, 2026
@domenic

domenic commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Sorry, since filing that issue I have retired, and am no longer available to provide review.

@Kukzze

Kukzze commented Oct 27, 2026

Copy link
Copy Markdown
Contributor Author

No worries at all, thank you for letting me know! Wishing you the very best in your retirement. I'll leave this with the active MDN review rota.

```

By setting the `Origin-Agent-Cluster` header, a page can request that the browser allocate dedicated resources to this origin that are not shared with any other origins.
Under the current HTML specification, browsers place documents in origin-keyed agent clusters by default. This isolates same-site cross-origin documents from each other and prevents:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Words like "Under the current HTML specification" says nothing. MDN always documents the latest spec. What you need to do is add BCD for when that became the case in actual browsers

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks for catching that! Removed the time-relative spec phrasing across both documents so the behavior is stated directly. I'll also follow up with a PR in browser-compat-data for tracking when browsers enabled origin-keyed agent clusters by default.

@github-actions

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor
@hamishwillee
hamishwillee removed their request for review October 29, 2026 23:26
@Josh-Cena
Josh-Cena requested a review from a team as a code owner October 31, 2026 01:27
@Josh-Cena
Josh-Cena requested review from Josh-Cena and removed request for a team October 31, 2026 01:27
@github-actions github-actions Bot added the Content:JS JavaScript docs label Oct 31, 2026

@Josh-Cena Josh-Cena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you. The remaining work is in mdn/browser-compat-data#30940

@Josh-Cena
Josh-Cena merged commit 43bd841 into mdn:main Oct 31, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTTP HTTP docs Content:JS JavaScript docs Content:WebAPI Web API docs size/s [PR only] 6-50 LoC changed

3 participants