Skip to content

Commit

Permalink
COEP shouldn't take effect in data URL frames.
Browse files Browse the repository at this point in the history
Related to whatwg/html#4930.
  • Loading branch information
yutakahirano committed May 27, 2020
1 parent 14401ce commit 661fdfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion html/cross-origin-embedder-policy/data.https.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
assert_equals(data.id, "");
assert_equals(data.origin, "null");
assert_false(data.sameOriginNoCORPSuccess); // This is effectively a no-op for this test
assert_true(data.crossOriginNoCORPFailure, "Cross-origin without CORP did not fail");
// data URLs are not trustworthy, so COEP shouldn't take effect.
assert_false(data.crossOriginNoCORPFailure, "COEP took effect unexpectedly");
}));
const frame = document.createElement("iframe");
t.add_cleanup(() => frame.remove());
Expand Down

0 comments on commit 661fdfc

Please sign in to comment.