botrefund.com
← BotRefund Home DOM Event Cascades, WebAssembly VM & Prototype Integrity Signals

Keyboard Layout Map Empty

Queries navigator.keyboard.getLayoutMap() in supported top-level desktop Chromium contexts to detect Windows or macOS containers returning a zero-key layout map.

检测内容

In top-level Chromium contexts where navigator.keyboard.getLayoutMap() is exposed, the probe reads the size of the returned KeyboardLayoutMap dictionary.

When a session claiming Windows or macOS reports an active API returning zero mapped keys (size equals 0), a hardware-consistency notice is raised; browsers or contexts where the API is unavailable are safely ignored.

为何重要

Consumer Chromium running on physical Windows or macOS hardware queries OS keyboard tables to populate 50 or more scancode entries (KeyA, Digit1, etc.).

Headless Linux Docker containers lacking X11 or Wayland display keyboard mappings—or restricted embedded views—often return an empty zero-key map even when spoofing Windows or macOS user agents.

说明

Keyboard Map Population

01 预期结果

Populated OS key mapping or unsupported browser context

Genuine Windows and macOS Chromium desktops return 50+ printable scancode keys, while Firefox, Safari, and unsupported contexts pass without penalty.

Example result Claimed OS: Windows • KeyboardLayoutMap entries: 56 — Result: physical OS key mapping present
02 POSSIBLE AUTOMATION SIGNAL

Supported Keyboard API returns zero keys on Windows or Mac claim

A containerized headless browser lacking physical OS display keymaps reports zero entries despite claiming a Windows or macOS desktop environment.

Example result Claimed OS: macOS • KeyboardLayoutMap entries: 0 • Human interaction: none — Result: empty container keyboard layout detected

Forensic significance: Supporting hardware-environment check for Windows and macOS Chromium claims; safely ignores unsupported browsers and clears upon human interaction.