ladybird/Tests/LibWeb/Crash/DOM/document-constructor-no-origin.html
Shannon Booth fc62a05c98 LibWeb/DOM: Set Document's origin in JS constructor
We were missing this spec step, which meant that the created
document had no origin, causing a crash when accessed for same-origin
checks.
2025-06-18 08:49:01 +02:00

4 lines
70 B
HTML

<!DOCTYPE html>
<script>
let d = new Document().domain;
</script>