mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-15 03:17:05 +02:00
When parsing an SVG image loaded via <img>, the XMLDocumentBuilder's document_end() would spin the event loop waiting for scripts, load events, and other page lifecycle milestones that are irrelevant for a decoded SVG image. Skip this entirely, as SVG-as-image operates in secure static mode where external resources are also disabled.