chromium/third_party/blink/web_tests/http/tests/security/resources/onerror-iframe.html

<script>
function handleLoad()
{
    window.parent.postMessage("IFrameLoaded", "*");
}

throw "IframeException";

</script>
<body onload="handleLoad()">
</body>