| 1 var SPEC_JSON = {"test_expansion_schema": {"origin": ["same-host-https", "same-h
ost-http", "cross-origin-https", "cross-origin-http", "same-host-wss", "same-hos
t-ws", "cross-origin-wss", "cross-origin-ws"], "subresource": {"blockable": ["if
rame-tag", "script-tag", "link-css-tag", "form-tag", "xhr-request", "worker-requ
est", "fetch-request", "a-tag", "object-tag", "picture-tag", "websocket-request"
], "optionally-blockable": ["img-tag", "audio-tag", "video-tag", "link-prefetch-
tag"]}, "context_nesting": ["top-level", "sub-level"], "expectation": ["allowed"
, "blocked"], "expansion": ["default", "override"], "redirection": ["no-redirect
", "keep-scheme-redirect", "swap-scheme-redirect"], "opt_in_method": ["no-opt-in
", "http-csp", "meta-csp", "img-crossorigin"], "source_scheme": ["http", "https"
]}, "specification": [{"test_expansion": [{"origin": ["cross-origin-http", "same
-host-http"], "name": "opt-in-blocks", "redirection": "*", "expectation": "block
ed", "expansion": "default", "context_nesting": "top-level", "opt_in_method": ["
http-csp", "meta-csp"], "source_scheme": "https", "subresource": {"blockable": [
], "optionally-blockable": "*"}}, {"origin": ["cross-origin-http", "same-host-ht
tp"], "name": "no-opt-in-allows", "redirection": "*", "expectation": "allowed",
"expansion": "default", "context_nesting": "top-level", "opt_in_method": "no-opt
-in", "source_scheme": "https", "subresource": {"blockable": [], "optionally-blo
ckable": "*"}}], "description": "Test behavior of optionally-blockable content",
"specification_url": "http://www.w3.org/TR/mixed-content/#category-optionally-b
lockable", "name": "optionally-blockable", "title": "Optionally-blockable conten
t"}, {"test_expansion": [{"origin": ["cross-origin-http", "same-host-http"], "na
me": "opt-in-blocks", "redirection": "*", "expectation": "blocked", "expansion":
"default", "context_nesting": "top-level", "opt_in_method": ["http-csp", "meta-
csp"], "source_scheme": "https", "subresource": {"blockable": "*", "optionally-b
lockable": []}}, {"origin": ["cross-origin-http", "same-host-http"], "name": "no
-opt-in-blocks", "redirection": "*", "expectation": "blocked", "expansion": "def
ault", "context_nesting": "top-level", "opt_in_method": "no-opt-in", "source_sch
eme": "https", "subresource": {"blockable": "*", "optionally-blockable": []}}, {
"origin": ["cross-origin-ws", "same-host-ws"], "name": "ws-downgrade-blocks", "r
edirection": "*", "expectation": "blocked", "expansion": "default", "context_nes
ting": "top-level", "opt_in_method": ["no-opt-in", "http-csp", "meta-csp"], "sou
rce_scheme": "https", "subresource": {"blockable": "websocket-request", "optiona
lly-blockable": []}}], "description": "Test behavior of blockable content.", "sp
ecification_url": "http://www.w3.org/TR/mixed-content/#category-blockable", "nam
e": "blockable", "title": "Blockable content"}, {"test_expansion": [{"origin": [
"same-host-https"], "name": "allowed", "redirection": ["no-redirect", "keep-sche
me-redirect"], "expectation": "allowed", "expansion": "default", "context_nestin
g": "top-level", "opt_in_method": "*", "source_scheme": "https", "subresource":
{"blockable": "*", "optionally-blockable": "*"}}, {"origin": ["same-host-wss"],
"name": "websocket-allowed", "redirection": ["no-redirect", "keep-scheme-redirec
t"], "expectation": "allowed", "expansion": "default", "context_nesting": "top-l
evel", "opt_in_method": "*", "source_scheme": "https", "subresource": {"blockabl
e": "websocket-request", "optionally-blockable": []}}], "description": "Test beh
avior of allowed content.", "specification_url": "http://www.w3.org/TR/mixed-con
tent/", "name": "allowed", "title": "Allowed content"}], "excluded_tests": [{"or
igin": "*", "name": "Redundant-subresources", "redirection": "*", "expectation":
"*", "expansion": "*", "context_nesting": "*", "opt_in_method": "*", "source_sc
heme": "*", "subresource": {"blockable": ["a-tag"], "optionally-blockable": []}}
, {"origin": ["same-host-https", "same-host-http", "cross-origin-https", "cross-
origin-http"], "name": "Skip-origins-not-applicable-to-websockets", "redirection
": "*", "expectation": "*", "expansion": "*", "context_nesting": "*", "opt_in_me
thod": "*", "source_scheme": "*", "subresource": {"blockable": ["websocket-reque
st"], "optionally-blockable": []}}, {"origin": "*", "name": "TODO-opt-in-method-
img-cross-origin", "redirection": "*", "expectation": "*", "expansion": "*", "co
ntext_nesting": "*", "opt_in_method": "img-crossorigin", "source_scheme": "*", "
subresource": {"blockable": "*", "optionally-blockable": "*"}}, {"origin": "*",
"name": "Skip-redundant-for-opt-in-method", "redirection": ["keep-scheme-redirec
t", "swap-scheme-redirect"], "expectation": "*", "expansion": "*", "context_nest
ing": "*", "opt_in_method": ["meta-csp", "img-crossorigin"], "source_scheme": "*
", "subresource": {"blockable": "*", "optionally-blockable": "*"}}]}; |