Sign in
webkit
/
WebKit
/
c6f5eb86a2e764e93f8acb30662cc524010272f6
/
.
/
LayoutTests
/
http
/
tests
/
security
/
contentSecurityPolicy
/
resources
/
fail-to-inject-script.js
blob: 1f896d1d84fa7c221cfd931b2d5606e7d6362259 [
file
] [
log
] [
blame
]
var
s
=
document
.
createElement
(
'script'
);
s
.
onerror
=
function
()
{
done
();
};
s
.
onload
=
function
()
{
assert_unreached
(
'Script loaded.'
);
};
document
.
body
.
appendChild
(
s
);
s
.
innerText
=
'assert_unreached("Script should not run.");'