Browse Source

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.
Andrew Kaster 1 year ago
parent
commit
e05a6f6aa2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Userland/Libraries/LibWeb/HTML/NavigationDestination.h

+ 2 - 0
Userland/Libraries/LibWeb/HTML/NavigationDestination.h

@@ -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&);