blob: 4985148247d3dcea27346d91bfe49ffba764cd61 [file] [log] [blame]
<html>
<head>
<script>
function test() {
if (window.testRunner) {
window.testRunner.dumpAsText();
}
window.top.addEventListener("DOMNodeInserted", () => {
document.head.innerHTML = 123;
}, {once : true});
document.title = "abc";
}
test()
</script>
</head>
<body>
<p>Test that setting title while there is a registred DOMNodeInserted event handler which indirectly deletes title doesn't crash.
</p>
</body>
</html>