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
22 lines
597 B
HTML
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>
|