diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-26 12:26:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-26 12:47:51 +0200 |
commit | 508edcd217b23c0cc0107a094269e65373b813de (patch) | |
tree | 38af3e47ab5788f2967a64c8ec4af47621e436c6 /Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | |
parent | a2f77a2e3966db737c74e5c7c4d53610969d7302 (diff) | |
download | serenity-508edcd217b23c0cc0107a094269e65373b813de.zip |
LibWeb: Add a "page showing" flag to documents
This will be used to determine whether "pageshow" and "pagehide" events
are appropriate. We won't actually make use of it until we implement
more of history traversal and document unloading.
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp index 8f84c18adb..be45d48140 100644 --- a/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp +++ b/Userland/Libraries/LibWeb/HTML/Parser/HTMLParser.cpp @@ -261,9 +261,11 @@ void HTMLParser::the_end() // FIXME: 8. Set the Document's load timing info's load event end time to the current high resolution time given window. - // FIXME: 9. Assert: Document's page showing is false. + // 9. Assert: Document's page showing is false. + VERIFY(!document->page_showing()); - // FIXME: 10. Set the Document's page showing flag to true. + // 10. Set the Document's page showing flag to true. + document->set_page_showing(true); // FIXME: 11. Fire a page transition event named pageshow at window with false. |