From 0c85a7cebc8836f953912b52391be74663a6a64f Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 28 Aug 2023 17:54:16 +0200 Subject: [PATCH] LibWeb: Add DocumentState about base url member --- Userland/Libraries/LibWeb/HTML/DocumentState.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/DocumentState.h b/Userland/Libraries/LibWeb/HTML/DocumentState.h index a7f7cdfcc3c..854a0bad643 100644 --- a/Userland/Libraries/LibWeb/HTML/DocumentState.h +++ b/Userland/Libraries/LibWeb/HTML/DocumentState.h @@ -52,6 +52,9 @@ public: [[nodiscard]] Optional origin() const { return m_origin; } void set_origin(Optional origin) { m_origin = move(origin); } + [[nodiscard]] Optional const& about_base_url() const { return m_about_base_url; } + void set_about_base_url(Optional url) { m_about_base_url = move(url); } + [[nodiscard]] Vector const& nested_histories() const { return m_nested_histories; } [[nodiscard]] Vector& nested_histories() { return m_nested_histories; } @@ -90,6 +93,9 @@ private: // https://html.spec.whatwg.org/multipage/browsing-the-web.html#document-state-origin Optional m_origin; + // https://html.spec.whatwg.org/multipage/browsing-the-web.html#document-state-about-base-url + Optional m_about_base_url = {}; + // https://html.spec.whatwg.org/multipage/browsing-the-web.html#document-state-nested-histories Vector m_nested_histories;