mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
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:
parent
fa83cc722c
commit
bc67bdb160
Notes:
github-actions[bot]
2024-10-29 11:04:38 +00:00
Author: https://github.com/trflynn89
Commit: bc67bdb160
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2028
Reviewed-by: https://github.com/tcl3 ✅
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue