Revision dd7ffe7ae5c4df2f19f961f340d376f64b6c0de3 authored by Philip Jägenstedt on 06 April 2018, 11:10:29 UTC, committed by Philip Jägenstedt on 06 April 2018, 11:22:15 UTC
First dos2unix was used and for text-fonts-202-t-manual.svg this also removes a UTF-8 BOM. Then all files were passed through git stripspace, which also removed some double blank lines which don't look to have been meaningful. Finally all tabs were replaced by two spaces, as that's the tab width that seems to have been used when editing these files. Some odd indentation remains and would have to be fixed manually.
1 parent 487c4a8
sameorigin.sub.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script>
<body>
<script>
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/xfo.py?value=SAMEORIGIN";
wait_for_message_from(i, t)
.then(t.step_func_done(e => {
assert_equals(e.data, "Loaded");
i.remove();
}));
document.body.appendChild(i);
}, "`XFO: SAMEORIGIN` allows same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/nested.py?origin=http://{{host}}:{{ports[http][0]}}&value=SAMEORIGIN";
wait_for_message_from(i, t)
.then(t.step_func_done(e => {
assert_equals(e.data, "Loaded");
i.remove();
}));
document.body.appendChild(i);
}, "`XFO: SAMEORIGIN` allows same-origin nested in same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "http://{{domains[www]}}:{{ports[http][0]}}/x-frame-options/support/xfo.py?value=SAMEORIGIN";
assert_no_message_from(i, t);
i.onload = t.step_func_done(_ => {
assert_throws("SecurityError", function () { return i.contentDocument; });
i.remove();
});
document.body.appendChild(i);
}, "`XFO: SAMEORIGIN` blocks cross-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/nested.py?origin=http://{{domains[www]}}:{{ports[http][0]}}&value=SAMEORIGIN";
wait_for_message_from(i, t)
.then(t.step_func_done(e => {
assert_equals(e.data, "Failed");
i.remove();
}));
document.body.appendChild(i);
}, "`XFO: SAMEORIGIN` blocks cross-origin nested in same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "http://{{domains[www]}}:{{ports[http][0]}}/x-frame-options/support/nested.py?origin=http://{{host}}:{{ports[http][0]}}&value=SAMEORIGIN";
wait_for_message_from(i, t)
.then(t.step_func_done(e => {
assert_equals(e.data, "Failed");
i.remove();
}));
document.body.appendChild(i);
}, "`XFO: SAMEORIGIN` blocks same-origin nested in cross-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "http://{{domains[www]}}:{{ports[http][0]}}/x-frame-options/support/nested.py?origin=http://{{domains[www]}}:{{ports[http][0]}}&value=SAMEORIGIN";
wait_for_message_from(i, t)
.then(t.step_func_done(e => {
assert_equals(e.data, "Failed");
i.remove();
}));
document.body.appendChild(i);
}, "`XFO: SAMEORIGIN` blocks cross-origin nested in cross-origin framing.");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...