1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-12 22:30:59 +00:00
serenity/Userland
Andreas Kling e28ac74e0b LibWeb: Queue a task to proceed after module map entry finishes fetching
We were doing this synchronously, which was unsafe in that caused us to
re-enter the module map entry setting code while iterating over the
map's entries.

The fix is simply to do what the spec says and queue up a task. This way
the processing gets deferred to a later time.

To avoid stepping into this problem again, I've also added a reentrancy
check in ModuleMap.

This fixes a sporadic crash in HTML::ModuleMap::add() caught by ASAN.
In particular, this was happening regularly on https://shopify.com/
2023-12-16 20:47:16 +01:00
..
Applets LibGfx: Remove indexed palette formats from Bitmap and Painter 2023-10-12 07:39:05 +02:00
Applications PixelPaint: Repaint histogram data when the widget gets resized 2023-12-14 09:07:20 -07:00
BuggieBox checksum: Add support for BLAKE2b 2023-09-17 16:49:35 +03:30
Demos LibGUI: Split HorizontalSlider to separate header 2023-12-08 01:06:09 +01:00
DevTools Userland+Tests: Add initial riscv64 support 2023-11-10 10:30:08 -07:00
DynamicLoader DynamicLoader: Make heuristic for running directly actually correct 2023-11-27 09:27:34 -07:00
Games Solitaire: Ability to automatically solve the end of the game 2023-12-10 00:02:32 +01:00
Libraries LibWeb: Queue a task to proceed after module map entry finishes fetching 2023-12-16 20:47:16 +01:00
Services LibAccelGfx+LibWeb: Explicitly pass OpenGL context to Painter 2023-12-16 19:39:36 +01:00
Shell LibLine: Remove duplicate members in CompletionSuggestion 2023-12-15 16:58:03 +03:30
Utilities LibWeb: Refactor int types in WebContentServer to DevicePixels 2023-12-15 17:01:16 +01:00
CMakeLists.txt