mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02: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:
committed by
Andreas Kling
parent
26be8f865a
commit
274411db97
Notes:
github-actions[bot]
2024-10-08 16:50:04 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/274411db975 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1683
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user