LibWeb: Implement navigator.deviceMemory

Fixes at least 2 subtests in wpt/device-memory.
This commit is contained in:
Jelle Raaijmakers 2024-10-08 15:51:30 +02:00 committed by Andreas Kling
commit 69f11fc1c6
Notes: github-actions[bot] 2024-10-08 17:03:21 +00:00
6 changed files with 55 additions and 2 deletions

View file

@ -0,0 +1,5 @@
// https://www.w3.org/TR/device-memory/#sec-device-memory-js-api
[SecureContext, Exposed=(Window,Worker)]
interface mixin NavigatorDeviceMemory {
readonly attribute double deviceMemory;
};