blob: 8c329be39cfa8d9b90a304ca079ea580497d0e55 [file] [log] [blame]
<!DOCTYPE html>
<body>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.dumpAsText();
}
function test() {
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();
}
</script>
<iframe id="testFrame" onload="test()" src="about://example.org"></iframe>
</body>