The document-domain policy governs access to document.domain. It is enabled by default, and, if disabled, attempting to set document.domain will throw an error.
Docs: https://github.com/WICG/feature-policy/issues/241
Explainers: https://github.com/w3c/webappsec-feature-policy/issues/241