ladybird/Libraries/LibWeb
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
..
Animations LibWeb: Skip keyframe animation update if target element isn't connected 2025-01-10 15:41:37 +01:00
ARIA
Bindings LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
Clipboard
Compression
Cookie
Crypto LibWeb: Always return a KeyAlgorithm from RsaHashedKeyAlgorithm 2025-01-17 12:43:03 +01:00
CSS LibWeb: Expand invalidation sets usage to any attribute change 2025-01-19 19:54:38 +01:00
DOM LibWeb: Expand invalidation sets usage to any attribute change 2025-01-19 19:54:38 +01:00
DOMParsing
DOMURL LibURL+LibWeb: Make URL::basic_parse return an Optional<URL> 2025-01-11 10:08:29 -05:00
Editing LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
Encoding
EntriesAPI
EventTiming
Fetch LibWeb/Fetch: Remove FIXME for since fixed spec bug 2025-01-16 01:16:47 +00:00
FileAPI
Geometry
HighResolutionTime
HTML LibWeb: Do not run microtasks when the event loop is paused 2025-01-19 20:47:50 +00:00
IndexedDB LibWeb: Rename ConnectionQueue to RequestList 2025-01-14 23:46:09 +01:00
Infra
Internals
IntersectionObserver
Layout LibWeb: Implement partial layout tree updates 2025-01-18 21:01:01 +01:00
Loader
MathML LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
MediaCapabilitiesAPI
MediaSourceExtensions LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
MimeSniff
MixedContent
NavigationTiming LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
Page UI: Prevent crash when right clicking on an unloaded image 2025-01-12 19:29:57 +00:00
Painting WebContent+LibWeb: Add an option to disable painting viewport scrollbars 2025-01-15 12:33:53 +00:00
PerformanceTimeline LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
PermissionsPolicy
Platform
ReferrerPolicy
RequestIdleCallback
ResizeObserver
SecureContexts
Selection LibWeb: Add command state & value overrides to DOM::Document 2025-01-10 23:33:35 +01:00
ServiceWorker
SRI
StorageAPI
Streams LibWeb/Streams: Ensure pending pull into's objects are visited by GC 2025-01-18 10:26:40 +01:00
SVG LibWeb: Resolve SVGImageElement source URL correctly 2025-01-19 15:02:38 +01:00
UIEvents LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
UserTiming
WebAssembly
WebAudio LibWeb/WebAudio: Implement automation rate constraints 2025-01-19 17:24:55 +01:00
WebDriver LibWeb: Use finalize for cleaning up all navigables 2025-01-17 10:08:42 +01:00
WebGL LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
WebIDL LibWeb: Unload fonts when adopted style sheet is removed 2025-01-10 19:12:48 +03:00
WebSockets
WebVTT
Worker
XHR LibWeb/XHR: Isomorphic decode accessing XMLHttpRequest response headers 2025-01-15 12:35:56 +00:00
XLink LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
XML
CMakeLists.txt LibWeb: Use invalidation sets to reduce style recalculation 2025-01-19 19:54:38 +01:00
Dump.cpp
Dump.h
Forward.h LibWeb/CSS: Merge RotationStyleValue into TransformationStyleValue 2025-01-17 10:12:39 +01:00
idl_files.cmake LibWeb: Add StereoPannerNode interface 2025-01-18 10:20:41 +01:00
InvalidateDisplayList.h
Namespace.cpp LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
Namespace.h LibWeb: Remove the initialize_strings methods 2025-01-12 00:35:58 +01:00
PixelUnits.cpp
PixelUnits.h
TraversalDecision.h
TraversalOrder.h
TreeNode.h LibWeb: Add TreeNode<T>::replace_child(new_child, old_child) 2025-01-18 21:01:01 +01:00