Skip to content

Two sandboxed iframes are in different agent clusters#60311

Open
annevk wants to merge 1 commit into
masterfrom
annevk/agent-cluster-stuff
Open

Two sandboxed iframes are in different agent clusters#60311
annevk wants to merge 1 commit into
masterfrom
annevk/agent-cluster-stuff

Conversation

@annevk
Copy link
Copy Markdown
Member

@annevk annevk commented Jun 1, 2026

No description provided.

@wpt-pr-bot wpt-pr-bot added the html label Jun 1, 2026
@wpt-pr-bot wpt-pr-bot requested review from foolip, jdm and jgraham June 1, 2026 08:12
annevk added a commit to annevk/WebKit that referenced this pull request Jun 1, 2026
https://bugs.webkit.org/show_bug.cgi?id=216618
rdar://69452369

Reviewed by NOBODY (OOPS!).

This implements origin-keyed agent clusters and gates it behind
OriginAgentClusterEnabled (set to preview). It is standardized here:

https://html.spec.whatwg.org/multipage/browsers.html#origin-isolation

This new keying does not impact process allocation, although we could
decide to make it impact that in the future if we wanted to. It impacts
document.domain, serialization and deserialization of certain objects,
and the new window.originAgentCluster getter.

We add a new test that is upstreamed at
web-platform-tests/wpt#60311 that catches an
issue with our existing agent cluster implementation for opaque
origins and we also fix that issue.

As the test infrastructure continues to use the same browsing context
group for each test, we add a way to reset the browsing context group
state so it appears as if you are getting a fresh browsing context
group when you start a new test.

The subtest failures of regression-1399759.https.sub.html are due to
about:blank inheriting from the parent instead of the initiator of the
navigation. That's a distinct issue from this new feature.

going-back.sub.https.html is skipped because it times out on some bots
at the history.back() step, while the feature-related assertions pass.
I suspect it's related to the bfcache. I could not reproduce it locally
(1000 iterations of the test as well as 10 full-directory runs).
annevk added a commit to annevk/WebKit that referenced this pull request Jun 1, 2026
https://bugs.webkit.org/show_bug.cgi?id=216618
rdar://69452369

Reviewed by NOBODY (OOPS!).

This implements origin-keyed agent clusters and gates it behind
OriginAgentClusterEnabled (set to preview). It is standardized here:

https://html.spec.whatwg.org/multipage/browsers.html#origin-isolation

This new keying does not impact process allocation, although we could
decide to make it impact that in the future if we wanted to. It impacts
document.domain, serialization and deserialization of certain objects,
and the new window.originAgentCluster getter.

We add a new test that is upstreamed at
web-platform-tests/wpt#60311 that catches an
issue with our existing agent cluster implementation for opaque
origins and we also fix that issue.

As the test infrastructure continues to use the same browsing context
group for each test, we add a way to reset the browsing context group
state so it appears as if you are getting a fresh browsing context
group when you start a new test.

The subtest failures of regression-1399759.https.sub.html are due to
about:blank inheriting from the parent instead of the initiator of the
navigation. That's a distinct issue from this new feature.

going-back.sub.https.html is skipped because it times out on some bots
at the history.back() step, while the feature-related assertions pass.
I suspect it's related to the bfcache. I could not reproduce it locally
(1000 iterations of the test as well as 10 full-directory runs).
annevk added a commit to annevk/WebKit that referenced this pull request Jun 2, 2026
https://bugs.webkit.org/show_bug.cgi?id=216618
rdar://69452369

Reviewed by NOBODY (OOPS!).

This implements origin-keyed agent clusters and gates it behind
OriginAgentClusterEnabled (set to preview). It is standardized here:

https://html.spec.whatwg.org/multipage/browsers.html#origin-isolation

This new keying does not impact process allocation, although we could
decide to make it impact that in the future if we wanted to. It impacts
document.domain, serialization and deserialization of certain objects,
and the new window.originAgentCluster getter.

We add a new test that is upstreamed at
web-platform-tests/wpt#60311 that catches an
issue with our existing agent cluster implementation for opaque
origins and we also fix that issue.

As the test infrastructure continues to use the same browsing context
group for each test, we add a way to reset the browsing context group
state so it appears as if you are getting a fresh browsing context
group when you start a new test.

The subtest failures of regression-1399759.https.sub.html are due to
about:blank inheriting from the parent instead of the initiator of the
navigation. That's a distinct issue from this new feature.

going-back.sub.https.html is skipped because it times out on some bots
at the history.back() step, while the feature-related assertions pass.
I suspect it's related to the bfcache. I could not reproduce it locally
(1000 iterations of the test as well as 10 full-directory runs).
webkit-commit-queue pushed a commit to annevk/WebKit that referenced this pull request Jun 2, 2026
https://bugs.webkit.org/show_bug.cgi?id=216618
rdar://69452369

Reviewed by Alex Christensen.

This implements origin-keyed agent clusters and gates it behind
OriginAgentClusterEnabled (set to preview). It is standardized here:

https://html.spec.whatwg.org/multipage/browsers.html#origin-isolation

This new keying does not impact process allocation, although we could
decide to make it impact that in the future if we wanted to. It impacts
document.domain, serialization and deserialization of certain objects,
and the new window.originAgentCluster getter.

We add a new test that is upstreamed at
web-platform-tests/wpt#60311 that catches an
issue with our existing agent cluster implementation for opaque
origins and we also fix that issue.

As the test infrastructure continues to use the same browsing context
group for each test, we add a way to reset the browsing context group
state so it appears as if you are getting a fresh browsing context
group when you start a new test.

The subtest failures of regression-1399759.https.sub.html are due to
about:blank inheriting from the parent instead of the initiator of the
navigation. That's a distinct issue from this new feature.

going-back.sub.https.html is skipped because it times out on some bots
at the history.back() step, while the feature-related assertions pass.
I suspect it's related to the bfcache. I could not reproduce it locally
(1000 iterations of the test as well as 10 full-directory runs).

Canonical link: https://commits.webkit.org/314346@main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants