mirror of
https://github.com/servo/servo.git
synced 2025-10-16 08:20:22 +01:00
26 lines
888 B
HTML
26 lines
888 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_SITE, "", true],
|
|
[SAME_SITE, "unsafe-none", true],
|
|
[SAME_SITE, "jibberish", true],
|
|
[SAME_SITE, "same-site", true], // historical value, equivalent to "unsafe-none"
|
|
[SAME_SITE, "same-site unsafe-allow-outgoing", true], // historical value, equivalent to "unsafe-none"
|
|
[SAME_SITE, "same-origin unsafe-allow-outgoing", true], // historical value, equivalent to "unsafe-none"
|
|
[SAME_SITE, "same-origin", false],
|
|
[SAME_SITE, "same-origin-allow-popups", false],
|
|
];
|
|
|
|
run_coop_tests("unsafe-none", tests);
|
|
|
|
</script>
|