Revision 712117fd2551047eab06ca9133205d79ec24389d authored by Reza.Zakerinasab on 06 November 2017, 16:09:10 UTC, committed by Chromium WPT Sync on 06 November 2017, 16:09:10 UTC
This change removes the requirement of experimental canvas features flag for CreateImageBitmap resize options. Bug: 762559 Change-Id: Ifcf3a781f10f85a95ba36628b9dd76509181950b
1 parent b2cac4f
multiple.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&value2=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; XFO: SAMEORIGIN` allows same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/xfo.py?value=SAMEORIGIN&value2=DENY";
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; XFO: DENY` blocks same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/xfo.py?value=DENY&value2=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: DENY; XFO: SAMEORIGIN` blocks same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/xfo.py?value=INVALID&value2=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: INVALID; XFO: SAMEORIGIN` blocks same-origin framing.");
async_test(t => {
var i = document.createElement('iframe');
i.src = "./support/xfo.py?value=SAMEORIGIN&value2=INVALID";
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; XFO: INVALID` blocks 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&value2=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; XFO: SAMEORIGIN` blocks cross-origin framing.");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...