mirror of
https://github.com/servo/servo.git
synced 2025-10-18 09:19:16 +01:00
21 lines
625 B
HTML
21 lines
625 B
HTML
<!doctype html>
|
|
<meta charset=utf-8>
|
|
<meta name=timeout content=long>
|
|
<script src=/resources/testharness.js></script>
|
|
<script src=/resources/testharnessreport.js></script>
|
|
<script src="/common/get-host-info.sub.js"></script>
|
|
<script src="resources/common.js"></script>
|
|
|
|
<div id=log></div>
|
|
<script>
|
|
|
|
let tests = [
|
|
// popup Origin, popup COOP, expect opener.
|
|
[SAME_ORIGIN, "unsafe-none; report-to=endpoint", false],
|
|
[SAME_ORIGIN, "same-origin; report-to=endpoint", true],
|
|
[SAME_ORIGIN, "same-origin-allow-popups; report-to=endpoint", false],
|
|
];
|
|
|
|
run_coop_tests("same-origin with structured headers", tests);
|
|
|
|
</script>
|