1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:28:13 +00:00

LibWeb: Make the can have its url rewritten AO publicly accessible

We'll need this from the Navigation API
This commit is contained in:
Andrew Kaster 2023-09-22 18:15:03 -06:00 committed by Alexander Kalenik
parent f98659dd76
commit b07badb832
2 changed files with 3 additions and 1 deletions

View file

@ -110,7 +110,7 @@ WebIDL::ExceptionOr<void> 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();

View file

@ -42,4 +42,6 @@ private:
JS::NonnullGCPtr<DOM::Document> m_associated_document;
};
bool can_have_its_url_rewritten(DOM::Document const& document, AK::URL const& target_url);
}