blob: 0398f061ce94d5aef303bf6f2bfe6b95d30be77f [file]
<iframe id=iframe></iframe>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
iframe.srcdoc = `<script>onbeforeunload = async () => {
await clientInformation.storage.persist();
document.designMode = 'off';
document.title = 'x';
};</scri`+`pt>`;
iframe.onload = () => {
iframe.onload = () => {
if (window.testRunner)
testRunner.notifyDone();
};
iframe.srcdoc = "foo";
};
</script>
This test passes if it doesn't crash.