mirror of
https://github.com/servo/servo.git
synced 2025-08-29 17:18:23 +01:00
Update web-platform-tests to revision 5084587f6b05bf99ad09e7844be66dcc61070cdf
This commit is contained in:
parent
6d42d2f1e8
commit
7d1071a6a4
408 changed files with 8968 additions and 2608 deletions
|
@ -0,0 +1,19 @@
|
|||
<!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/redirect.py?value=DENY&url=/x-frame-options/support/xfo.py%3Fvalue%3DALLOWALL";
|
||||
|
||||
wait_for_message_from(i, t)
|
||||
.then(t.step_func_done(e => {
|
||||
assert_equals(e.data, "Loaded");
|
||||
i.remove();
|
||||
}));
|
||||
|
||||
document.body.appendChild(i);
|
||||
}, "XFO on redirect responses is ignored.");
|
||||
</script>
|
|
@ -0,0 +1,4 @@
|
|||
def main(request, response):
|
||||
response.status = 302
|
||||
response.headers.set("X-Frame-Options", request.GET.first("value"))
|
||||
response.headers.set("Location", request.GET.first("url"))
|
Loading…
Add table
Add a link
Reference in a new issue