From e05a6f6aa26bb5128988e39b66e759d8a25bc907 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Fri, 22 Sep 2023 18:18:19 -0600 Subject: [PATCH] LibWeb: Add getter to NavigationDestination to get its URL as an AK::URL Other parts of LibWeb are going to want to mess with the URL object, not its serialzied representation. So let's add a backdoor getter. --- Userland/Libraries/LibWeb/HTML/NavigationDestination.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibWeb/HTML/NavigationDestination.h b/Userland/Libraries/LibWeb/HTML/NavigationDestination.h index 75724fb16d..af3e436f91 100644 --- a/Userland/Libraries/LibWeb/HTML/NavigationDestination.h +++ b/Userland/Libraries/LibWeb/HTML/NavigationDestination.h @@ -37,6 +37,8 @@ public: virtual ~NavigationDestination() override; + AK::URL const& raw_url() const { return m_url; } + private: NavigationDestination(JS::Realm&);