mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 18:19:03 +00:00
LibWeb: Implement navigator.deviceMemory
Fixes at least 2 subtests in wpt/device-memory.
This commit is contained in:
parent
6189d1ac9d
commit
69f11fc1c6
Notes:
github-actions[bot]
2024-10-08 17:03:21 +00:00
Author: https://github.com/gmta
Commit: 69f11fc1c6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1681
6 changed files with 55 additions and 2 deletions
5
Userland/Libraries/LibWeb/HTML/NavigatorDeviceMemory.idl
Normal file
5
Userland/Libraries/LibWeb/HTML/NavigatorDeviceMemory.idl
Normal 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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue