From 29a4266367f8798f84219e0dad5c026886d3bbb0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 1 Aug 2022 16:19:55 +0200 Subject: [PATCH] LibWeb: Add the "is initial about:blank" flag to DOM::Document --- Userland/Libraries/LibWeb/DOM/Document.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Userland/Libraries/LibWeb/DOM/Document.h b/Userland/Libraries/LibWeb/DOM/Document.h index 0119d94d41..21a87925dc 100644 --- a/Userland/Libraries/LibWeb/DOM/Document.h +++ b/Userland/Libraries/LibWeb/DOM/Document.h @@ -364,6 +364,10 @@ public: bool has_active_favicon() const { return m_active_favicon; } void check_favicon_after_loading_link_resource(); + // https://html.spec.whatwg.org/multipage/dom.html#is-initial-about:blank + bool is_initial_about_blank() const { return m_is_initial_about_blank; } + void set_is_initial_about_blank(bool b) { m_is_initial_about_blank = b; } + private: explicit Document(const AK::URL&); @@ -480,6 +484,9 @@ private: bool m_needs_full_style_update { false }; HashTable m_node_iterators; + + // https://html.spec.whatwg.org/multipage/dom.html#is-initial-about:blank + bool m_is_initial_about_blank { false }; }; }