blob: 3dd65d276a3005f65c09506fbb71dc1b67318e99 [file] [log] [blame]
This tests that the Content Security Policy of the page allows loading a Web Worker's script redirected on the same origin.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS worker = new Worker("http://127.0.0.1:8000/resources/redirect.php?url=http://127.0.0.1:8000/security/resources/worker-message-pass.js") did not throw exception.
PASS PASS: Worker loaded and sent message
PASS successfullyParsed is true
TEST COMPLETE