blob: 39aa945d872b7d21327b689c87d5f2ad5d492977 [file] [log] [blame]
<p>This test tests parsing of hash fragments in about:blank URLs
(they should be preserved).</p>
<p>See <a href="https://bugs.webkit.org/show_bug.cgi?id=35399">
https://bugs.webkit.org/show_bug.cgi?id=35399</a>.</p>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
}
function onload_callback() {
var old_hash = inner.location.hash;
inner.location.hash = "hash-ref";
var new_hash = inner.location.hash;
var c = document.getElementById("content");
c.innerHTML = (new_hash == "#hash-ref") ? "PASS" : "FAIL";
}
</script>
<div id="content">No callback</div>
<iframe style="display:none" name=inner id=inner onload="onload_callback()"
src="about:blank"></iframe>