blob: 887652c92b27d83bb5f11773798985a88ec02fb1 [file] [edit]
<!DOCTYPE html>
<body>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
onload = () => {
setTimeout(() => {
try {
if (window.internals) {
const host = internals.windowLocationHost(testFrame.contentWindow);
document.body.innerHTML = host === "" ? "PASS" : "FAIL, got " + host;
}
} catch (e) {
console.log(e);
}
if (window.testRunner)
testRunner.notifyDone();
}, 100);
}
</script>
<iframe id="testFrame" src="about://example.org"></iframe>
</body>