mirror of
https://github.com/servo/servo.git
synced 2025-09-09 06:28:22 +01:00
Set correct policy-container for worker construction (#36603)
This makes sure that when workers are created, their global scope has the correct policy-container set so that we can do CSP-checks. Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com>
This commit is contained in:
parent
d724c8e9e3
commit
9a14ad8535
25 changed files with 67 additions and 136 deletions
|
@ -1,3 +0,0 @@
|
|||
[worker-connect-src-blocked.sub.html]
|
||||
[Expecting logs: ["xhr blocked","TEST COMPLETE"\]]
|
||||
expected: FAIL
|
|
@ -1,16 +1,7 @@
|
|||
[dedicatedworker-connect-src.html]
|
||||
[Cross-origin 'fetch()' in http: with connect-src 'self']
|
||||
expected: FAIL
|
||||
|
||||
[Cross-origin XHR in http: with connect-src 'self']
|
||||
expected: FAIL
|
||||
|
||||
[Same-origin => cross-origin 'fetch()' in http: with connect-src 'self']
|
||||
expected: FAIL
|
||||
|
||||
[WebSocket in http: with connect-src 'self']
|
||||
expected: FAIL
|
||||
|
||||
[Reports match in http: with connect-src 'self']
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,15 +1,16 @@
|
|||
[dedicatedworker-script-src.html]
|
||||
expected: TIMEOUT
|
||||
[Cross-origin `importScripts()` blocked in http: with script-src 'self']
|
||||
expected: FAIL
|
||||
expected: TIMEOUT
|
||||
|
||||
[`eval()` blocked in http: with script-src 'self']
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[`setTimeout([string\])` blocked in http: with script-src 'self']
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Reports are sent for http: with script-src 'self']
|
||||
expected: FAIL
|
||||
expected: NOTRUN
|
||||
|
||||
[Cross-origin `importScripts()` blocked in blob: with script-src 'self']
|
||||
expected: FAIL
|
||||
|
@ -22,3 +23,6 @@
|
|||
|
||||
[Reports are sent for blob: with script-src 'self']
|
||||
expected: FAIL
|
||||
|
||||
[dedicatedworker-script-src]
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
[worker-eval-blocked.sub.html]
|
||||
[Expecting logs: ["eval blocked"\]]
|
||||
expected: FAIL
|
|
@ -1,3 +0,0 @@
|
|||
[worker-function-function-blocked.sub.html]
|
||||
[Expecting logs: ["Function() function blocked"\]]
|
||||
expected: FAIL
|
|
@ -1,6 +1,3 @@
|
|||
[worker-importscripts.sub.html]
|
||||
[Dedicated worker delivers its own CSP]
|
||||
expected: FAIL
|
||||
|
||||
[Shared worker delivers its own CSP]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
[worker-set-timeout.sub.html]
|
||||
[Dedicated worker delivers its own CSP]
|
||||
expected: FAIL
|
||||
|
||||
[Shared worker delivers its own CSP]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[inside-dedicated-worker.html]
|
||||
expected: TIMEOUT
|
||||
[SecurityPolicyViolation event fired on global.]
|
||||
expected: FAIL
|
||||
|
||||
[SecurityPolicyViolation event fired on global with the correct blockedURI.]
|
||||
expected: TIMEOUT
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
[default-src-blocks-wasm.any.worker.html]
|
||||
[default-src-blocks-wasm]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[default-src-blocks-wasm.any.html]
|
||||
|
||||
|
|
|
@ -2,9 +2,6 @@
|
|||
expected: ERROR
|
||||
|
||||
[script-src-blocks-wasm.any.worker.html]
|
||||
[script-src-blocks-wasm]
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[script-src-blocks-wasm.any.html]
|
||||
|
||||
|
|
|
@ -7,9 +7,8 @@
|
|||
|
||||
|
||||
[script-src-spv-asynch.any.worker.html]
|
||||
expected: TIMEOUT
|
||||
[Securitypolicyviolation event looks like it should]
|
||||
expected: TIMEOUT
|
||||
expected: FAIL
|
||||
|
||||
|
||||
[script-src-spv-asynch.any.serviceworker.html]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue