mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +00:00
This algorithm is the meat of firing the NavigateEvent at navigation. In order to implement it, we also need to add some getters/setters on NavigateEvent. The implemetentation deviates from the spec in when exactly the NavigateEvent is created. In following the pattern for other events. we construct the event from the NavigateEventInit structure from our native code. This makes the code a lot simpler than adding 10 getters to the NavigateEvent that are only ever used just after construction. I'm not 100% conviced the promise resolution code is correct, but we can add tests for that later :^).
7.0 KiB
7.0 KiB