summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorReimarPB <reimarpb@gmail.com>2022-05-13 19:39:12 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-13 20:50:47 +0200
commit235e977e3a20dde3ab2a7feb1145bca3c7593f57 (patch)
treec213393c4bbe73604ff7f37dd9553c63d3c930d0 /Userland/Libraries
parentf8950ea846dc5878ae3d84f974a57139b7fa60b0 (diff)
downloadserenity-235e977e3a20dde3ab2a7feb1145bca3c7593f57.zip
LibWeb: Add window.clientInformation property
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/WindowObject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
index 2c8b11bd6a..6a8581efc3 100644
--- a/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
+++ b/Userland/Libraries/LibWeb/Bindings/WindowObject.cpp
@@ -127,7 +127,9 @@ void WindowObject::initialize_global_object()
m_location_object = heap().allocate<LocationObject>(*this, *this);
- define_direct_property("navigator", heap().allocate<NavigatorObject>(*this, *this), JS::Attribute::Enumerable | JS::Attribute::Configurable);
+ auto* m_navigator_object = heap().allocate<NavigatorObject>(*this, *this);
+ define_direct_property("navigator", m_navigator_object, JS::Attribute::Enumerable | JS::Attribute::Configurable);
+ define_direct_property("clientInformation", m_navigator_object, JS::Attribute::Enumerable | JS::Attribute::Configurable);
// NOTE: location is marked as [LegacyUnforgeable], meaning it isn't configurable.
define_direct_property("location", m_location_object, JS::Attribute::Enumerable);