1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:18:12 +00:00

LibWeb/HTML: Port Window.history to IDL

This commit is contained in:
Linus Groh 2023-03-05 20:21:35 +00:00
parent eccc0d90de
commit c42496187b
6 changed files with 17 additions and 9 deletions

View file

@ -2068,6 +2068,11 @@ JS::NonnullGCPtr<HTML::History> Document::history()
return *m_history;
}
JS::NonnullGCPtr<HTML::History> Document::history() const
{
return const_cast<Document*>(this)->history();
}
// https://html.spec.whatwg.org/multipage/origin.html#dom-document-domain
DeprecatedString Document::domain() const
{