21 lines
680 B
HTML
21 lines
680 B
HTML
<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>
|