LibWeb/HTML: Update "is script closable" to current spec

Corresponds to d7fc63a84a
and 7a48703e77
This commit is contained in:
Sam Atkins 2025-05-03 13:49:38 +01:00
commit a8529629e2
Notes: github-actions[bot] 2025-05-08 09:40:30 +00:00
2 changed files with 22 additions and 18 deletions

View file

@ -47,6 +47,9 @@ public:
VisibilityState system_visibility_state() const { return m_system_visibility_state; }
void set_system_visibility_state(VisibilityState);
bool is_created_by_web_content() const { return m_is_created_by_web_content; }
void set_is_created_by_web_content(bool value) { m_is_created_by_web_content = value; }
struct HistoryObjectLengthAndIndex {
u64 script_history_length;
u64 script_history_index;
@ -156,6 +159,9 @@ private:
// https://html.spec.whatwg.org/multipage/document-sequences.html#system-visibility-state
VisibilityState m_system_visibility_state { VisibilityState::Hidden };
// https://html.spec.whatwg.org/multipage/document-sequences.html#is-created-by-web-content
bool m_is_created_by_web_content { false };
// https://storage.spec.whatwg.org/#traversable-navigable-storage-shed
// A traversable navigable holds a storage shed, which is a storage shed. A traversable navigables storage shed holds all session storage data.
StorageAPI::StorageShed m_storage_shed;