From 1ec4db04cd4a04263c7081d95fbc804b2e610b42 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 18 May 2020 21:42:40 +0200 Subject: [PATCH] LibWeb: Add a simple window.location object with some getters :^) --- Base/home/anon/www/location.html | 17 ++++ Base/home/anon/www/welcome.html | 1 + Libraries/LibWeb/Bindings/LocationObject.cpp | 88 ++++++++++++++++++++ Libraries/LibWeb/Bindings/LocationObject.h | 53 ++++++++++++ Libraries/LibWeb/Bindings/WindowObject.cpp | 2 + Libraries/LibWeb/CMakeLists.txt | 1 + 6 files changed, 162 insertions(+) create mode 100644 Base/home/anon/www/location.html create mode 100644 Libraries/LibWeb/Bindings/LocationObject.cpp create mode 100644 Libraries/LibWeb/Bindings/LocationObject.h diff --git a/Base/home/anon/www/location.html b/Base/home/anon/www/location.html new file mode 100644 index 00000000000..61a42351c69 --- /dev/null +++ b/Base/home/anon/www/location.html @@ -0,0 +1,17 @@ + + + + window.location test + + +

+    
+    
+
diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html
index 48f42c30df3..3ac63a9022e 100644
--- a/Base/home/anon/www/welcome.html
+++ b/Base/home/anon/www/welcome.html
@@ -28,6 +28,7 @@ span#ua {
     

Your user agent is:

Some small test pages: