mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-01 14:45:29 +00:00
32 lines
801 B
HTML
32 lines
801 B
HTML
<!DOCTYPE html>
|
|
<html class="reftest-wait">
|
|
<head>
|
|
<script>
|
|
var loads = 0;
|
|
function loadStarted() {
|
|
++loads;
|
|
}
|
|
function loadEnded() {
|
|
--loads;
|
|
if (loads == 0) {
|
|
document.documentElement.className = "";
|
|
}
|
|
}
|
|
loadStarted();
|
|
window.onload = function() {
|
|
if (location.protocol != 'file:') {
|
|
var txt = document.createTextNode('Must be run from file://');
|
|
var div = document.createElement("div");
|
|
div.appendChild(txt);
|
|
document.body.appendChild(div);
|
|
}
|
|
loadEnded();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<iframe width="500" height="200" src="subdir/445004-subframe.html"
|
|
onload="window.frames[0].doIt();"></iframe>
|
|
</body>
|
|
</html>
|