diff --git a/Userland/Libraries/LibWeb/HTML/History.cpp b/Userland/Libraries/LibWeb/HTML/History.cpp index 5d8d420120..0e221c3992 100644 --- a/Userland/Libraries/LibWeb/HTML/History.cpp +++ b/Userland/Libraries/LibWeb/HTML/History.cpp @@ -110,7 +110,7 @@ WebIDL::ExceptionOr History::forward() } // https://html.spec.whatwg.org/multipage/nav-history-apis.html#can-have-its-url-rewritten -static bool can_have_its_url_rewritten(DOM::Document const& document, AK::URL const& target_url) +bool can_have_its_url_rewritten(DOM::Document const& document, AK::URL const& target_url) { // 1. Let documentURL be document's URL. auto document_url = document.url(); diff --git a/Userland/Libraries/LibWeb/HTML/History.h b/Userland/Libraries/LibWeb/HTML/History.h index d176715954..ab3fc70666 100644 --- a/Userland/Libraries/LibWeb/HTML/History.h +++ b/Userland/Libraries/LibWeb/HTML/History.h @@ -42,4 +42,6 @@ private: JS::NonnullGCPtr m_associated_document; }; +bool can_have_its_url_rewritten(DOM::Document const& document, AK::URL const& target_url); + }