mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
1ac99b3b45
--HG-- extra : rebase_source : ed08041d6ff4b53da32d6a7a73fcc9ad7b5e8958
25 lines
751 B
HTML
25 lines
751 B
HTML
<html>
|
|
<head>
|
|
<script>
|
|
var timerID = 0;
|
|
function testDone() {
|
|
clearTimeout(timerID);
|
|
var l = document.body.firstChild.contentWindow.location.href;
|
|
opener.is(l, "data:text/html,bar", "Should have loaded a new document");
|
|
opener.nextTest();
|
|
window.close();
|
|
}
|
|
function test() {
|
|
var ifr = document.getElementsByTagName("iframe")[0];
|
|
ifr.onload = testDone;
|
|
ifr.contentWindow.location.hash = "b";
|
|
ifr.contentWindow.location.href = "data:text/html,bar";
|
|
history.back();
|
|
timerID = setTimeout(testDone, 2000);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onload="setTimeout(test, 0)"><iframe src="data:text/html,foo#a"></iframe>
|
|
</body>
|
|
</html>
|