Commit a910c5e
committed
Implement the Origin-Agent-Cluster header
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).1 parent da28aa6 commit a910c5e
104 files changed
Lines changed: 981 additions & 15 deletions
File tree
- LayoutTests
- imported/w3c/web-platform-tests/html
- browsers/origin/origin-keyed-agent-clusters
- 1-iframe
- 2-iframes
- getter-special-cases
- resources
- popups
- dom
- Source
- WTF/Scripts/Preferences
- WebCore
- WebCore.xcodeproj
- bindings/js
- dom
- loader
- page
- platform/network
- WebKit
- UIProcess
- API/C
- WebProcess/WebPage
- Tools/WebKitTestRunner
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
787 | | - | |
| 787 | + | |
788 | 788 | | |
789 | 789 | | |
790 | 790 | | |
| |||
Lines changed: 23 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments