1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
// META: variant=?1-1
// META: variant=?2-2
// META: variant=?3-3
// META: variant=?4-4
// META: variant=?5-5
// META: variant=?6-6
// META: variant=?7-7
// META: variant=?8-8
// META: variant=?9-9
// META: variant=?10-10
// META: variant=?11-11
// META: variant=?12-12
// META: variant=?13-last
// META: timeout=long
// META: script=/common/get-host-info.sub.js
// META: script=/common/utils.js
// META: script=/common/subset-tests.js
// META: script=/common/dispatcher/dispatcher.js
// META: script=/html/cross-origin-embedder-policy/credentialless/resources/common.js
// META: script=./resources/common.js
// META: script=./resources/embedding-test.js
const {REMOTE_ORIGIN} = get_host_info();
// variant = 1
subsetTest(embeddingTest,
"Parent embeds same-origin credentialless iframe", {
expectation: EXPECT_LOAD,
});
// variant = 2
subsetTest(embeddingTest,
"Parent embeds cross-origin credentialless iframe", {
child_origin: REMOTE_ORIGIN,
expectation: EXPECT_LOAD,
});
// variant = 3
subsetTest(embeddingTest,
"COEP:require-corp parent embeds same-origin credentialless iframe", {
parent_headers: coep_require_corp,
expectation: EXPECT_LOAD,
});
// variant = 4
subsetTest(embeddingTest,
"COEP:require-corp parent embeds cross-origin credentialless iframe", {
parent_headers: coep_require_corp,
child_origin: REMOTE_ORIGIN,
expectation: EXPECT_LOAD,
});
// variant = 5
subsetTest(embeddingTest,
"COEP:credentialless parent embeds same-origin credentialless iframe", {
parent_headers: coep_credentialless,
expectation: EXPECT_LOAD,
});
// variant = 6
subsetTest(embeddingTest,
"COEP:credentialless parent embeds cross-origin credentialless iframe", {
parent_headers: coep_credentialless,
child_origin: REMOTE_ORIGIN,
expectation: EXPECT_LOAD,
});
// variant = 7
// Regression test for https://crbug.com/1314369
subsetTest(embeddingTest,
"COOP:same-origin + COEP:require-corp embeds same-origin credentialless iframe", {
parent_headers: coop_same_origin + coep_require_corp,
expectation: EXPECT_LOAD,
});
// variant = 8
// Regression test for https://crbug.com/1314369
subsetTest(embeddingTest,
"COOP:same-origin + COEP:require-corp embeds cross-origin credentialless iframe", {
parent_headers: coop_same_origin + coep_require_corp,
child_origin: REMOTE_ORIGIN,
expectation: EXPECT_LOAD,
});
// variant = 9
// Regression test for https://crbug.com/1314369
subsetTest(embeddingTest,
"COOP:same-origin + COEP:credentialless embeds same-origin credentialless iframe", {
parent_headers: coop_same_origin + coep_credentialless,
expectation: EXPECT_LOAD,
});
// variant = 10
// Regression test for https://crbug.com/1314369
subsetTest(embeddingTest,
"COOP:same-origin + COEP:credentialless embeds cross-origin credentialless iframe", {
parent_headers: coop_same_origin + coep_credentialless,
child_origin: REMOTE_ORIGIN,
expectation: EXPECT_LOAD,
});
// variant = 11
subsetTest(embeddingTest,
"Parents embeds a CSP:frame-ancestors credentialless iframe", {
child_headers: "|header(Content-Security-Policy,frame-ancestors 'none')",
expectation: EXPECT_BLOCK,
});
// variant = 12
subsetTest(embeddingTest,
"Cross-Origin-Isolated parent embeds same-origin COEP credentialless iframe", {
parent_headers: coop_same_origin + coep_require_corp,
child_headers: coop_same_origin + coep_require_corp,
expectation: EXPECT_LOAD,
});
// variant = 13
subsetTest(embeddingTest,
"Cross-Origin-Isolated parent embeds cross-origin COEP credentialless iframe", {
parent_headers: coop_same_origin + coep_require_corp,
child_headers: coop_same_origin + coep_require_corp,
child_origin: REMOTE_ORIGIN,
expectation: EXPECT_LOAD,
});
|