Sign in
cobalt
/
cobalt
/
refs/tags/24.lts.5
/
.
/
cobalt
/
black_box_tests
/
testdata
/
worker_csp_test.js
blob: 58874aa405988e4b5e057e438c7baea34138dd75 [
file
] [
log
] [
blame
]
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!"
);