summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Bindings/LocationObject.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-03-05 21:31:31 +0100
committerLinus Groh <mail@linusgroh.de>2022-03-06 23:27:39 +0100
commit8b4e5220aa7bf3d527ffef34c79c4c6b335d5733 (patch)
treef56e028405990423e380aa62675769d25480d2ae /Userland/Libraries/LibWeb/Bindings/LocationObject.h
parent11d0e37d8ee30cea11a8579ecf26de8df80bd41d (diff)
downloadserenity-8b4e5220aa7bf3d527ffef34c79c4c6b335d5733.zip
LibWeb: Implement the [[CrossOriginPropertyDescriptorMap]] internal slot
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings/LocationObject.h')
-rw-r--r--Userland/Libraries/LibWeb/Bindings/LocationObject.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/LocationObject.h b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
index 18a16e1a8d..6a03eada20 100644
--- a/Userland/Libraries/LibWeb/Bindings/LocationObject.h
+++ b/Userland/Libraries/LibWeb/Bindings/LocationObject.h
@@ -10,6 +10,7 @@
#include <AK/URL.h>
#include <LibJS/Runtime/Completion.h>
#include <LibJS/Runtime/Object.h>
+#include <LibWeb/Bindings/CrossOriginAbstractOperations.h>
#include <LibWeb/Forward.h>
namespace Web {
@@ -30,6 +31,9 @@ public:
// FIXME: There should also be a custom [[GetPrototypeOf]], [[GetOwnProperty]], [[DefineOwnProperty]], [[Get]], [[Set]], [[Delete]] and [[OwnPropertyKeys]],
// but we don't have the infrastructure in place to implement them yet.
+ CrossOriginPropertyDescriptorMap const& cross_origin_property_descriptor_map() const { return m_cross_origin_property_descriptor_map; }
+ CrossOriginPropertyDescriptorMap& cross_origin_property_descriptor_map() { return m_cross_origin_property_descriptor_map; }
+
private:
DOM::Document const* relevant_document() const;
AK::URL url() const;
@@ -47,6 +51,9 @@ private:
JS_DECLARE_NATIVE_FUNCTION(search_getter);
JS_DECLARE_NATIVE_FUNCTION(protocol_getter);
JS_DECLARE_NATIVE_FUNCTION(port_getter);
+
+ // [[CrossOriginPropertyDescriptorMap]], https://html.spec.whatwg.org/multipage/browsers.html#crossoriginpropertydescriptormap
+ CrossOriginPropertyDescriptorMap m_cross_origin_property_descriptor_map;
};
}