Skip to content

Conversation

@tunetheweb
Copy link
Contributor

@tunetheweb tunetheweb commented Dec 11, 2025

Description

  • Copies the device client hints to new docs with their standard Sec-CH names.
  • Adds Sec-CH-Viewport-Height page.
  • Prefers the Sec-CH- variants to their old names.

Motivation

Fix developer confusion: https://bsky.app/profile/ericportis.com/post/3m7oa4vo5fk2q

Additional details

Device-Memory, DPR and Width were added in Chrome 97: https://chromestatus.com/feature/6658223894429696 (note Device-Memory was not noted there)

Height was added in Chrome 105: https://chromestatus.com/feature/5646861215989760

Related issues and pull requests

BCD changes: mdn/browser-compat-data#28636

@tunetheweb tunetheweb requested review from a team as code owners December 11, 2025 12:21
@tunetheweb tunetheweb requested review from bsmth and removed request for a team December 11, 2025 12:21
@github-actions github-actions bot added Content:WebAPI Web API docs Content:HTTP HTTP docs size/m [PR only] 51-500 LoC changed labels Dec 11, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 11, 2025

Preview URLs (14 pages)
Flaws (6)

Note! 12 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTTP/Reference/Headers
Title: HTTP headers
Flaw count: 3

  • macros:
    • Macro httpheader produces link /en-US/docs/Web/HTTP/Reference/Headers/Accept-Signature which doesn't resolve
    • Macro httpheader produces link /en-US/docs/Web/HTTP/Reference/Headers/Signature which doesn't resolve
    • Macro httpheader produces link /en-US/docs/Web/HTTP/Reference/Headers/Signed-Headers which doesn't resolve

URL: /en-US/docs/Web/HTTP/Reference/Headers/Viewport-Width
Title: Viewport-Width header
Flaw count: 3

  • unknown:
    • No generic content config found
    • no blog root
    • no blog root
External URLs (4)

URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-Device-Memory
Title: Sec-CH-Device-Memory header


URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-DPR
Title: Sec-CH-DPR header


URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-Viewport-Height
Title: Sec-CH-Viewport-Height header


URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-Viewport-Width
Title: Sec-CH-Viewport-Width header

(comment last updated: 2025-12-15 22:20:37)

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MDN follows BCD, and BCD keeps information for 2 years after a feature is removed from all browsers.

So the way this is handled really depends on what you do in BCD - e.g. if there is just one record with an alias then you might delete and redirect one of the records as done here.

Personally I would maintain the both records in BCD, and also maintain the pages in MDN. Deletion would then happen 2 years after all browsers stop supporting a particular header name - such as DPR.

@tunetheweb
Copy link
Contributor Author

I was trying to avoid duplication of content, but since both are still supported for now that's a fair call.

Added back now so PTAL.

@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot added merge conflicts 🚧 [PR only] and removed merge conflicts 🚧 [PR only] labels Dec 13, 2025
@tunetheweb
Copy link
Contributor Author

This pull request has merge conflicts that must be resolved before it can be merged.

Fixed

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tunetheweb , FYI, I've squash merged and rebased all your commits. This is of course not "necessary", but I find it much easier to keep things up to date and understand thinking if changes are needed using a rebase merge rather than just merging main. Hope this does not annoy you.

EDIT Also added some review comments. Most of these are arguable, but I think provide about the right level of cross linking. The actual new content LGTM.

@tunetheweb
Copy link
Contributor Author

tunetheweb commented Dec 14, 2025

Thanks for the thorough review @hamishwillee !

I've accepted most of the feedback but have an outstanding comment about one of the pieces of feedback (x3). I have a slight preference to keep it as I'd written to it, but not 100% wedded to it if you feel strongly about this.

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @tunetheweb - appreciate your patience.

@tunetheweb
Copy link
Contributor Author

And yours! And your thoughtful reviews. Good to merge from my end!

@hamishwillee hamishwillee merged commit 53d1a48 into mdn:main Dec 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:HTTP HTTP docs Content:WebAPI Web API docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants