Files
ladybird/Tests/LibWeb/Text/input/corrupt-svg-favicon.html
rmg-x b9554038ff LibWeb+LibXML: Make Listener::set_source(ByteString) fallible
`set_source` takes a ByteString but the implementation might require a
specific encoding. Make it fallible so that we don't need to crash in
the case of invalid UTF-8 or similar.

The test includes a sequence of invalid UTF-8 bytes that crash the
browser without this change.
2025-10-02 02:25:28 +02:00

13 lines
247 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="icon" href="../data/invalid_utf8_corrupt.svg" type="image/svg+xml">
</head>
<script src="include.js"></script>
<script>
test(() => {
println("PASS (didn't crash)")
});
</script>
</html>