Skip to content

Un-deprecate navigator.platform#15599

Merged
sideshowbarker merged 1 commit intomdn:mainfrom
sideshowbarker:sideshowbarker/navigator.platform-undeprecate
Mar 31, 2022
Merged

Un-deprecate navigator.platform#15599
sideshowbarker merged 1 commit intomdn:mainfrom
sideshowbarker:sideshowbarker/navigator.platform-undeprecate

Conversation

@sideshowbarker
Copy link
Copy Markdown
Member

@sideshowbarker sideshowbarker commented Mar 31, 2022

Given the spec change at whatwg/html#7762, we no longer have justification for marking navigator.platform as deprecated. Related MDN change: mdn/content#14452.

Given the spec change at whatwg/html#7762 we no
longer have justification for marking navigator.platform as deprecated.

Related MDN change: mdn/content#14452
@sideshowbarker sideshowbarker requested a review from foolip March 31, 2022 08:07
@github-actions github-actions Bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Mar 31, 2022
sideshowbarker added a commit to mdn/content that referenced this pull request Mar 31, 2022
Fixes #14429.

For the navigator.platform article, this change does the following:

- Drop the Deprecated_Header macro.
- Add admonishments that navigator.platform should be avoided in favor
  of feature detection.
- Relegate mention of (equally-bad) navigator.userAgentData.platform to
  just being a "See also".
- Add an example of the single known good case where using
  navigator.platform isn’t completely bad.

Related BCD change: mdn/browser-compat-data#15599
sideshowbarker added a commit to mdn/content that referenced this pull request Mar 31, 2022
Fixes #14429.

For the navigator.platform article, this change does the following:

- Drop the Deprecated_Header macro.
- Add admonishments that navigator.platform should be avoided in favor
  of feature detection.
- Relegate mention of (equally-bad) navigator.userAgentData.platform to
  just being a "See also".
- Add an example of the single known good case where using
  navigator.platform isn’t completely bad.

Related BCD change: mdn/browser-compat-data#15599

Related spec change: whatwg/html#7762
sideshowbarker added a commit to mdn/content that referenced this pull request Mar 31, 2022
Fixes #14429.

For the navigator.platform article, this change does the following:

- Drop the Deprecated_Header macro.
- Add admonishments that navigator.platform should be avoided in favor
  of feature detection.
- Relegate mention of (equally-bad) navigator.userAgentData.platform to
  just being a "See also".
- Add an example of the single known good case where using
  navigator.platform isn’t completely bad.

Related BCD change: mdn/browser-compat-data#15599

Related spec change: whatwg/html#7762
@sideshowbarker sideshowbarker merged commit b3bf321 into mdn:main Mar 31, 2022
@sideshowbarker sideshowbarker deleted the sideshowbarker/navigator.platform-undeprecate branch March 31, 2022 08:20
teoli2003 added a commit to mdn/content that referenced this pull request Mar 31, 2022
…vigator.platform doc and adjust navigator.userAgentData.platform note wording) (#14452)

* Adjust wording of note about navigator.userAgentData.platform

- Don’t say that navigator.userAgentData.platform is “recommended”; it’s
  sufficient to just point out that it exists as an alternative.
- Since it’s so far only in Blink, say “not yet supported by **most**
  browsers” rather than “not yet supported by some major browsers.

See #14429

* Replace Deprecated_Header in navigator.platform doc

For the navigator.platform article, this change replaces the
Deprecated_Header macro and its boilerplate text with some
more-appropriate alternative pseudo-boilerplate text.

See #14429

* Update files/en-us/web/api/navigator/platform/index.md

Co-authored-by: wbamberg <[email protected]>

* Drop “yet” in text about navigator.userAgentData.platform not being supported/adopted

* Un-deprecate navigator.platform; improve advice and example

Fixes #14429.

For the navigator.platform article, this change does the following:

- Drop the Deprecated_Header macro.
- Add admonishments that navigator.platform should be avoided in favor
  of feature detection.
- Relegate mention of (equally-bad) navigator.userAgentData.platform to
  just being a "See also".
- Add an example of the single known good case where using
  navigator.platform isn’t completely bad.

Related BCD change: mdn/browser-compat-data#15599

Related spec change: whatwg/html#7762

* Refine explanation of matching on navigator.platform value

* Fix markdown formatting of example navigator.platform values

* Grammar fix

* Update files/en-us/web/api/navigator/platform/index.md

Co-authored-by: Jean-Yves Perrier <[email protected]>

Co-authored-by: wbamberg <[email protected]>
Co-authored-by: Jean-Yves Perrier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants