Primary eng emails
caban...@adobe.com, bugm...@eligrey.com

*Proposal*
http://wiki.whatwg.org/wiki/NavigatorCores

*Summary*
Expose a property on navigator called hardwareConcurrency that returns the
number of logical cores on a machine.

*Motivation*
All native platforms expose this property, It's reasonable to expose the
same capabilities that native applications get so web applications can be
developed with equivalent features and performance.

*Mozilla bug*
https://bugzilla.mozilla.org/show_bug.cgi?id=1008453
The patch is currently not behind a runtime flag, but I could add it if
requested.

*Concerns*
The original proposal required that a platform must return the exact number
of logical CPU cores. To mitigate the fingerprinting concern, the proposal
was updated so a user agent can "lie" about this.
In the case of WebKit, it will return a maximum of 8 logical cores so high
value machines can't be discovered. (Note that it's already possible to do
a rough estimate of the number of cores)

*Compatibility Risk*
Blink: approved for implementation and shipping [1]
WebKit: almost approved for implementation [2]
Internet Explorer: No public signals
Web developers: Positive

1:
https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/xwl0ab20hVc
2: https://bugs.webkit.org/show_bug.cgi?id=132588
    https://lists.webkit.org/pipermail/webkit-dev/2014-May/026511.html
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to