blob: ea3f9a5097bcb4f5f322dbeaf26fe5c99c48473e [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.py?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