This API allows applications to determine which keycodes are mapped to specific keyboard keys on non-QWERTY keyboard layouts. For example, in a FPS game, the player will navigate using the WASD keys on a QWERTY keyboard, but ",AOE" on a Dvorak keyboard. Providing this information allows a web application to show an appropriate keyboard hint (e.g., "press the [,] key to move forward") for the current keyboard layout. Spec: https://wicg.github.io/keyboard-map/. There are fingerprinting considerations here, as noted in https://wicg.github.io/keyboard-map/#privacy. Given that the mapping between a key and its keycode is shared with the web application whenever a key is pressed (allowing fairly identification of layout with only a couple keys), requiring a user gesture may be sufficient protection.
<rdar://problem/70587899>
*** This bug has been marked as a duplicate of bug 186680 ***