1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:48:11 +00:00

LibWeb: Add window.status property

This commit is contained in:
Reimar 2023-12-04 19:52:04 +01:00 committed by Andrew Kaster
parent 3a820ddbdf
commit 4299fb604b
3 changed files with 21 additions and 0 deletions

View file

@ -863,6 +863,20 @@ void Window::set_name(String const& name)
navigable()->active_session_history_entry()->document_state->set_navigable_target_name(name);
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-window-status
String Window::status() const
{
// the status attribute on the Window object must, on getting, return the last string it was set to
return m_status;
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-window-status
void Window::set_status(String const& status)
{
// on setting, must set itself to the new value.
m_status = status;
}
// https://html.spec.whatwg.org/multipage/nav-history-apis.html#dom-location
JS::NonnullGCPtr<Location> Window::location()
{