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

@ -9,6 +9,7 @@
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/HTML/NavigatorConcurrentHardware.h>
#include <LibWeb/HTML/NavigatorDeviceMemory.h>
#include <LibWeb/HTML/NavigatorID.h>
#include <LibWeb/HTML/NavigatorLanguage.h>
#include <LibWeb/HTML/NavigatorOnLine.h>
@ -20,6 +21,7 @@ namespace Web::HTML {
class WorkerNavigator : public Bindings::PlatformObject
, public NavigatorConcurrentHardwareMixin
, public NavigatorDeviceMemoryMixin
, public NavigatorIDMixin
, public NavigatorLanguageMixin
, public NavigatorOnLineMixin