blob: 1f0d7ae71549577a88bd89446ca9f35e1ba0dd0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
var t_spv = async_test("Should not fire policy violation events");
window.addEventListener("securitypolicyviolation", t_spv.unreached_func("Should have not fired any securitypolicyviolation event"));
var inlineRan = false;
onload = function() {
test(function() {
assert_true(inlineRan, 'Unsafe inline script ran.')},
'Inline script in a script tag should run with an unsafe-inline directive'
);
t_spv.done();
}
|