Window: originAgentCluster property
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The originAgentCluster
read-only property of the Window
interface returns true
if this window belongs to an origin-keyed agent cluster: this means that the operating system has provided dedicated resources (for example an operating system process) to this window's origin that are not shared with windows from other origins.
Otherwise this property returns false
.
Windows that are part of an origin-keyed agent cluster are subjects to some additional restrictions, compared with windows that are not. In particular, they cannot:
- Set
Document.domain
, which is a legacy feature that normally allows same-site cross-origin pages to synchronously access each other's DOM. - Send
WebAssembly.Module
objects to other same-site cross-origin pages viaWindow.postMessage()
. - Send
SharedArrayBuffer
orWebAssembly.Memory
objects to other same-site cross-origin pages.
To request that the browser assign this window to an origin-keyed agent cluster, the server must send the Origin-Agent-Cluster
response header.
Note that the origin-keyed agent cluster feature is only supported in secure contexts. If a site is not a secure context, the window.originAgentCluster
will always return false
.
Specifications
Specification |
---|
HTML Standard # origin-keyed-agent-clusters |
Browser compatibility
BCD tables only load in the browser