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.
This commit is contained in:
Andrew Kaster 2023-09-22 18:18:19 -06:00 committed by Alexander Kalenik
parent a5e05c5082
commit e05a6f6aa2
Notes: sideshowbarker 2024-07-17 03:25:24 +09:00

View file

@ -37,6 +37,8 @@ public:
virtual ~NavigationDestination() override; virtual ~NavigationDestination() override;
AK::URL const& raw_url() const { return m_url; }
private: private:
NavigationDestination(JS::Realm&); NavigationDestination(JS::Realm&);