<html>
<body>
<iframe src="/slow?100" id="iframe"></iframe>
<script>
// slow takes 100 seconds to load, plenty of time to overwrite the
// provisional load.
iframe = document.getElementById("iframe");
iframe.contentWindow.stop();
iframe.contentDocument.body.innerHTML = ("Rewritten."
+ " <img src='/ad_tagging/pixel.png?ad=true'"
+ " onload='parent.document.title = \"loaded\";'"
+ " onerror='parent.document.title = \"failed\";'>");
</script>
</body>
</html>