mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 16:57:35 +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:
parent
f98659dd76
commit
b07badb832
2 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,7 @@ WebIDL::ExceptionOr<void> History::forward()
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#can-have-its-url-rewritten
|
// 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.
|
// 1. Let documentURL be document's URL.
|
||||||
auto document_url = document.url();
|
auto document_url = document.url();
|
||||||
|
|
|
@ -42,4 +42,6 @@ private:
|
||||||
JS::NonnullGCPtr<DOM::Document> m_associated_document;
|
JS::NonnullGCPtr<DOM::Document> m_associated_document;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bool can_have_its_url_rewritten(DOM::Document const& document, AK::URL const& target_url);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue