blob: 726f4203f4a63e4b446576f1b2def5f44b8d45ff [file] [log] [blame]
<!DOCTYPE html>
<iframe src="resources/sandbox.php?sandbox=allow-scripts"></iframe>
<script>
if (window.testRunner)
testRunner.dumpAsText();
window.onload = function() {
var frame = document.getElementsByTagName("iframe")[0];
try {
var secret = frame.contentWindow.secret;
console.log("FAIL: Iframe was not in a unique origin: " + secret);
} catch (e) {
console.log("PASS: Iframe was in a unique origin");
}
};
</script>