LibWeb+UI: Initialize the system visibility state to 'hidden'

Not only does this match the spec, but otherwise when the UI process
sends us the initial visibility update, we would ignore the message as
we believed we were already visible (thus the update would not reach the
document).
This commit is contained in:
Timothy Flynn 2024-10-28 15:21:53 -04:00 committed by Tim Ledbetter
commit bc67bdb160
Notes: github-actions[bot] 2024-10-29 11:04:38 +00:00
2 changed files with 2 additions and 1 deletions

View file

@ -138,7 +138,7 @@ private:
bool m_running_nested_apply_history_step { false };
// https://html.spec.whatwg.org/multipage/document-sequences.html#system-visibility-state
VisibilityState m_system_visibility_state { VisibilityState::Visible };
VisibilityState m_system_visibility_state { VisibilityState::Hidden };
JS::NonnullGCPtr<SessionHistoryTraversalQueue> m_session_history_traversal_queue;