Skip to content

Remove policy-controlled "document-domain" feature - #8549

Merged
domenic merged 1 commit into
whatwg:mainfrom
otherdaniel:remove-document-domain-feature
Dec 5, 2022
Merged

domenic merged 1 commit into
whatwg:mainfrom
otherdaniel:remove-document-domain-feature

Conversation

@otherdaniel

@otherdaniel otherdaniel commented Nov 24, 2022 •

Copy link
Copy Markdown
Contributor

Removes the policy-controlled "document-domain" feature. This feature was specified for the benefit of Permissions and Document Policy. If the feature was enabled, assigment to document.domain was aborted with a SecurityException.

The feature-controlled assignment to document.domain was implemented in Chromium browsers, but never default enabled. The originally intended goal of this feature is now being served by the Origin-Agent-Cluster http header.


/acknowledgements.html ( diff )
/browsers.html ( diff )
/infrastructure.html ( diff )

Removes the feature control of assigning to the document.domain
property. This feature was specified for the benefit of Permissions
and Document Policy. If the feature was enabled, assigment to
document.domain was aborted with a SecurityException.
@otherdaniel
otherdaniel force-pushed the remove-document-domain-feature branch from d027740 to 414f174 Compare December 1, 2022 14:07

@domenic domenic 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.

Excellent, thank you!

@domenic

domenic commented Dec 5, 2022

Copy link
Copy Markdown
Member

I found some MDN documentation for this after all, so I filed an issue: mdn/content#22732

@domenic
domenic merged commit d7ae2a6 into whatwg:main Dec 5, 2022
caugner pushed a commit to mdn/browser-compat-data that referenced this pull request May 20, 2025
Permissions-Policy directive `document-domain` was removed from
spec[1]. It was only ever implemented in Chromium behind a flag,
never enabled by default and was removed entirely in Chromium 110[2].

[1] whatwg/html#8549
[2] chromium/chromium@09ae39c
hamishwillee pushed a commit to mdn/content that referenced this pull request May 22, 2025
Permissions-Policy directive `document-domain` was removed from
spec[1]. It was only ever implemented in Chromium behind a flag,
never enabled by default and was removed entirely in Chromium 110[2].

[1] whatwg/html#8549
[2] chromium/chromium@09ae39c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants