Files
sousa-gecko/testing/web-platform/tests/content-security-policy/object-src/object-src-no-url-empty-source-list-embed-blocked.html
T
Roberto Rodriguez ce36ae4811 Bug 2045563 [wpt PR 60452] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=308775, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=308775 (#60452)
--

wpt-commits: ce19a7e6154f3a101dbb523b5845fdda9945b783
wpt-pr: 60452
2026-06-16 11:34:05 +00:00

22 lines
597 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="object-src; script-src 'self' 'unsafe-inline';">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
var t = async_test("Empty object-src source list should block the embed and fire a spv");
window.addEventListener('securitypolicyviolation', t.step_func_done(function(e) {
assert_equals(e.violatedDirective, "object-src");
}));
</script>
<embed type="text/html">
</body>
</html>