mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb: Add window.status property
This commit is contained in:
parent
3a820ddbdf
commit
4299fb604b
Notes:
sideshowbarker
2024-07-17 02:21:14 +09:00
Author: https://github.com/ReimarPB 🔰
Commit: 4299fb604b
Pull-request: https://github.com/SerenityOS/serenity/pull/22164
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/shannonbooth ✅
3 changed files with 21 additions and 0 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue