blob: 861624478765ad1206da21246522eef2b332b78f [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="data://example.org/text/html,test"></iframe>
</body>