blob: fa9b42fd2727f0fb03e8f83d6816ce4859fc5adc [file] [log] [blame]
CONSOLE ERROR: line 1: Refused to create a worker from '' because it violates the following Content Security Policy directive: "child-src 'none'". Note that 'worker-src' was not explicitly set, so 'child-src' is used as a fallback.
SharedWorkers should be governed by 'child-src'.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS var w = new SharedWorker('/security/contentSecurityPolicy/resources/alert-fail.js'); threw exception SecurityError: Failed to construct 'SharedWorker': Access to the script at '' is denied by the document's Content Security Policy..
PASS successfullyParsed is true