mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
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.
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user