LibWeb: Run only tasks with navigation source in "apply history step"

In our implementation of the "apply the history step" algorithm, we
have to spin-wait for the completion of tasks queued on the event loop.
Before this change, we allowed tasks from any source to be executed
while we were waiting. It should not be possible because it allows to
interrupt history step application by anything, including another
history step application.

Fixes https://github.com/SerenityOS/serenity/issues/23598
This commit is contained in:
Aliaksandr Kalenik 2024-03-20 15:41:45 +01:00 committed by Andreas Kling
commit e09816c37c
Notes: sideshowbarker 2024-07-17 03:25:24 +09:00
5 changed files with 58 additions and 2 deletions