blob: 8d048cbc6418936a2d6a1b092ccd7d043feab8f3 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<p>This tests add scroll event listener to a document without browsing context. WebKit should not crash.</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
const doc = document.implementation.createHTMLDocument();
function listner() { }
doc.addEventListener('scroll', listner);
doc.removeEventListener('scroll', listner);
document.write('PASS');
</script>
</body>
</html>