mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:17:35 +00:00
LibWeb/HTML: Port Window.history to IDL
This commit is contained in:
parent
eccc0d90de
commit
c42496187b
6 changed files with 17 additions and 9 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2022, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2021-2023, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -337,6 +338,7 @@ public:
|
|||
bool is_active() const;
|
||||
|
||||
JS::NonnullGCPtr<HTML::History> history();
|
||||
JS::NonnullGCPtr<HTML::History> history() const;
|
||||
|
||||
HTML::Location* location();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue