Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.Navigator.hardwareConcurrency - is supported in Safari #20429

Closed
karl-geoedge opened this issue Jul 27, 2023 · 0 comments · Fixed by #24815
Closed

api.Navigator.hardwareConcurrency - is supported in Safari #20429

karl-geoedge opened this issue Jul 27, 2023 · 0 comments · Fixed by #24815
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@karl-geoedge
Copy link

What type of issue is this?

Incorrect support data (example: Chrome says "86" but support was added in "40")

What information was incorrect, unhelpful, or incomplete?

Safari on iOS states not supported

10.3 – 10.3 (Released 2017-03-27)
disabled Removed in 11 and later

But it appears to be working fine on Safari iOS version 16.3 (navigator.hardwareConcurrency returns 4) and Safari 15.6.1 om MacOS 10.15.7 (navigator.hardwareConcurrency returns 8)

What browsers does this problem apply to, if applicable?

Safari

What did you expect to see?

That safari support is enabled by default.

Did you test this? If so, how?

Setup a test page here https://geoedgelabs.com/tests/VER-20660-hardwareConcurrency/ (use view souce to see the code).
Then opened said page in Safari on iOS and Safari on MacOS (also tested Chrome on iOS)

Can you link to any release notes, bugs, pull requests, or MDN pages related to this?

No response

Do you have anything more you want to share?

https://caniuse.com/hardwareconcurrency states that it is enabled but with the following caveat:

WebKit browsers clamp the maximum value returned to 2 on iOS devices and 8 on all others. Disabled in Safari behind the ENABLE_NAVIGATOR_HWCONCURRENCY build option.

However, my tests suggest that is no longer the case.

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/hardwareConcurrency

MDN metadata

MDN page report details
  • Query: api.Navigator.hardwareConcurrency
  • Report started: 2023-07-27T15:22:36.396Z
@karl-geoedge karl-geoedge changed the title api.Navigator.hardwareConcurrency - <SUMMARIZE THE PROBLEM> api.Navigator.hardwareConcurrency - is supported in Safari Jul 27, 2023
@queengooborg queengooborg added data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML and removed data:html Compat data for HTML elements. https://developer.mozilla.org/docs/Web/HTML labels Jul 27, 2023
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 a pull request may close this issue.

2 participants