LibWeb: Add the PageTransitionEvent interface and fire "pageshow" events

We now fire "pageshow" events at the appropriate time during document
loading (done by the parser.)

Note that there are no corresponding "pagehide" events yet.
This commit is contained in:
Andreas Kling 2021-09-26 12:39:27 +02:00
commit 831fdcaabc
Notes: sideshowbarker 2024-07-18 03:26:15 +09:00
7 changed files with 70 additions and 4 deletions

View file

@ -83,6 +83,8 @@ public:
float scroll_x() const;
float scroll_y() const;
void fire_a_page_transition_event(FlyString event_name, bool persisted);
private:
explicit Window(Document&);