ladybird/UI
Timothy Flynn 43dc0f52a6 LibWeb: Do not run microtasks when the event loop is paused
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.
2025-01-19 20:47:50 +00:00
..
Android LibURL+LibWeb: Make URL::serialize return a String 2024-12-04 16:34:13 +00:00
AppKit UI: Prevent crash when right clicking on an unloaded image 2025-01-12 19:29:57 +00:00
cmake
Headless LibWeb: Do not run microtasks when the event loop is paused 2025-01-19 20:47:50 +00:00
Icons
Qt UI: Prevent crash when right clicking on an unloaded image 2025-01-12 19:29:57 +00:00
.gitignore
CMakeLists.txt LibWebView+Services+UI: Move process helpers to LibWebView 2024-11-11 07:35:43 -05:00
DefaultSettings.h
Info.plist