mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-22 09:12:13 -05:00
43dc0f52a6
For example, running `alert(1)` will pause the event loop, during which time no JavaScript should execute. This patch extends this disruption to microtasks. This avoids a crash inside the microtask executor, which asserts the JS execution context stack is empty. This makes us behave the same as Firefox in the following page: <script> queueMicrotask(() => { console.log("inside microtask"); }); alert("hi"); </script> Before the aforementioned assertion was added, we would execute that microtask before showing the alert. Firefox does not do this, and now we don't either. |
||
---|---|---|
.. | ||
Application.cpp | ||
Application.h | ||
CMakeLists.txt | ||
Fixture.cpp | ||
Fixture.h | ||
HeadlessWebView.cpp | ||
HeadlessWebView.h | ||
main.cpp | ||
Test.cpp | ||
Test.h |