mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03:00
LibWeb: Add getter for history-action activation
This commit is contained in:
parent
a741f68eb9
commit
34b2a4f7ca
Notes:
sideshowbarker
2024-07-16 20:31:50 +09:00
Author: https://github.com/jamierocks Commit: https://github.com/SerenityOS/serenity/commit/34b2a4f7ca Pull-request: https://github.com/SerenityOS/serenity/pull/24437 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/mattco98 Reviewed-by: https://github.com/tcl3
@ -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()
|
||||
{
|
||||
|
@ -122,6 +122,9 @@ public:
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#transient-activation
|
||||
bool has_transient_activation() const;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/interaction.html#history-action-activation
|
||||
bool has_history_action_activation() const;
|
||||
|
||||
WebIDL::ExceptionOr<void> initialize_web_interfaces(Badge<WindowEnvironmentSettingsObject>);
|
||||
|
||||
Vector<JS::NonnullGCPtr<Plugin>> pdf_viewer_plugin_objects();
|
||||
|
Loading…
Reference in New Issue
Block a user