mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibWeb: Support Document.onvisibilitychange
We don't have a way to trigger this from a test, but the fix is so simple that we might as well get it in. :^)
This commit is contained in:
parent
26be8f865a
commit
274411db97
Notes:
github-actions[bot]
2024-10-08 16:50:04 +00:00
Author: https://github.com/awesomekling
Commit: 274411db97
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1683
3 changed files with 14 additions and 1 deletions
|
@ -5676,4 +5676,14 @@ void Document::set_onreadystatechange(WebIDL::CallbackType* value)
|
|||
set_event_handler_attribute(HTML::EventNames::readystatechange, value);
|
||||
}
|
||||
|
||||
WebIDL::CallbackType* Document::onvisibilitychange()
|
||||
{
|
||||
return event_handler_attribute(HTML::EventNames::visibilitychange);
|
||||
}
|
||||
|
||||
void Document::set_onvisibilitychange(WebIDL::CallbackType* value)
|
||||
{
|
||||
set_event_handler_attribute(HTML::EventNames::visibilitychange, value);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue