Source code

Revision control

Copy as Markdown

Other Tools

<html>
<head>
<title>X-Frame-Options tests</title>
<script type="text/javascript">
// This frame loading means all subframes have either loaded or errored out. We
// can now tell the test harness to check each subframe for the expected result.
window.addEventListener('load', parent.testFramesLoaded);
</script>
</head>
<body>
<!-- added for bug 836132 -->
<script type="text/javascript">
function addFrame(test, xfo) {
var ifr = "<iframe id='" + test + "'" + "src='" + baseurl + "?testid=" + test + "&xfo=" + xfo + "' style='border:2px solid red;'></iframe>";
document.write(ifr);
}
addFrame("allow-from-allow-1", "afa1");
for (var i = 1; i<=14; i++)
addFrame("allow-from-deny-"+i, "afd"+i);
</script>
</body>
</html>