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