mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
LibWeb: Add getter for history-action activation
This commit is contained in:
committed by
Andrew Kaster
parent
a741f68eb9
commit
34b2a4f7ca
@@ -631,6 +631,13 @@ bool Window::has_transient_activation() const
|
||||
return false;
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#history-action-activation
|
||||
bool Window::has_history_action_activation() const
|
||||
{
|
||||
// When the last history-action activation timestamp of W is not equal to the last activation timestamp of W, then W is said to have history-action activation.
|
||||
return m_last_history_action_activation_timestamp != m_last_activation_timestamp;
|
||||
}
|
||||
|
||||
// https://w3c.github.io/requestidlecallback/#start-an-idle-period-algorithm
|
||||
void Window::start_an_idle_period()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user