blob: ec33e7824301b201326f8751364998ab44c16036 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
description("This test verifies that a sandboxed iframe does not have permission to modify the document.domain property.");
function performedDomainChange(message, allowed)
{
debug(message);
document.getElementById("test_status").innerHTML = (allowed ? "FAIL" : "PASS");
finishJSTest();
}
</script>
</head>
<body>
<iframe sandbox="allow-scripts allow-same-origin" src="resources/sandboxed-iframe-set-domain.html"></iframe>
<p id='test_status'>FAIL: Script didn't run</p>
</body>
</html>