Sign in
cobalt
/
cobalt.git
/
56d7c4e1a836a7ef6e2823bffb8d1567758b82eb
/
.
/
cobalt
/
black_box_tests
/
testdata
/
worker_csp_test.js
blob: 58874aa405988e4b5e057e438c7baea34138dd75 [
file
]
const
xhr
=
new
XMLHttpRequest
();
// Script should fail and stop execution at this step due to SecurityViolation.
xhr
.
open
(
"GET"
,
"http://www.google.com"
);
xhr
.
send
();
self
.
postMessage
(
"Should not be reached!"
);