mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-24 18:55:30 +00:00
1a5be61f2b
Automatic update from web-platform-testsAdd more WPT tests for mixed-content check in workers/worklets (2/2) This CL adds generated files for test cases added in https://chromium-review.googlesource.com/1212744. Only manual change in this CL is mixed-content/spec.src.json and all other files are generated by generic/tools/generate.py. Bug: 880986, 880023, 880015 Change-Id: I7be98407c527883176ab6a2e9cfc1fedb1f8bfbe Reviewed-on: https://chromium-review.googlesource.com/1212746 Commit-Queue: Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/master@{#590369} -- wpt-commits: 9a195823e28e35bfc4accbf35b0cbd3da45aabe4 wpt-pr: 12943 --HG-- extra : rebase_source : 42782c55237f417fa25874366926fa4d75e564c3 extra : source : 28cbe0cde7f07ae1d5a50b04d46927cab00eced3
269 lines
7.1 KiB
JSON
269 lines
7.1 KiB
JSON
{
|
|
"specification": [
|
|
{
|
|
"name": "optionally-blockable",
|
|
"title": "Optionally-blockable content",
|
|
"description": "Test behavior of optionally-blockable content",
|
|
"specification_url": "http://www.w3.org/TR/mixed-content/#category-optionally-blockable",
|
|
"test_expansion": [
|
|
{
|
|
"name": "opt-in-blocks",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": ["http-csp", "meta-csp"],
|
|
"context_nesting": "top-level",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": [],
|
|
"optionally-blockable": "*"
|
|
},
|
|
"origin": ["cross-origin-http", "same-host-http"],
|
|
"expectation": "blocked"
|
|
},
|
|
{
|
|
"name": "no-opt-in-allows",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": "no-opt-in",
|
|
"context_nesting": "top-level",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": [],
|
|
"optionally-blockable": "*"
|
|
},
|
|
"origin": ["cross-origin-http", "same-host-http"],
|
|
"expectation": "allowed"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "blockable",
|
|
"title": "Blockable content",
|
|
"description": "Test behavior of blockable content.",
|
|
"specification_url": "http://www.w3.org/TR/mixed-content/#category-blockable",
|
|
"test_expansion": [
|
|
{
|
|
"name": "opt-in-blocks",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": ["http-csp", "meta-csp"],
|
|
"context_nesting": "top-level",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": "*",
|
|
"optionally-blockable": []
|
|
},
|
|
"origin": ["cross-origin-http", "same-host-http"],
|
|
"expectation": "blocked"
|
|
},
|
|
{
|
|
"name": "no-opt-in-blocks",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": "no-opt-in",
|
|
"context_nesting": "top-level",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": "*",
|
|
"optionally-blockable": []
|
|
},
|
|
"origin": ["cross-origin-http", "same-host-http"],
|
|
"expectation": "blocked"
|
|
},
|
|
{
|
|
"name": "ws-downgrade-blocks",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": ["no-opt-in", "http-csp", "meta-csp"],
|
|
"context_nesting": "top-level",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": "websocket-request",
|
|
"optionally-blockable": []
|
|
},
|
|
"origin": ["cross-origin-ws", "same-host-ws"],
|
|
"expectation": "blocked"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "allowed",
|
|
"title": "Allowed content",
|
|
"description": "Test behavior of allowed content.",
|
|
"specification_url": "http://www.w3.org/TR/mixed-content/",
|
|
"test_expansion": [
|
|
{
|
|
"name": "allowed",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": "*",
|
|
"context_nesting": "top-level",
|
|
"redirection": ["no-redirect", "keep-scheme-redirect"],
|
|
"subresource": {
|
|
"blockable": "*",
|
|
"optionally-blockable": "*"
|
|
},
|
|
"origin": ["same-host-https"],
|
|
"expectation": "allowed"
|
|
},
|
|
{
|
|
"name": "websocket-allowed",
|
|
"expansion": "default",
|
|
"source_scheme": "https",
|
|
"opt_in_method": "*",
|
|
"context_nesting": "top-level",
|
|
"redirection": ["no-redirect", "keep-scheme-redirect"],
|
|
"subresource": {
|
|
"blockable": "websocket-request",
|
|
"optionally-blockable": []
|
|
},
|
|
"origin": ["same-host-wss"],
|
|
"expectation": "allowed"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
|
|
"excluded_tests": [
|
|
{
|
|
"name": "Redundant-subresources",
|
|
"expansion": "*",
|
|
"source_scheme": "*",
|
|
"opt_in_method": "*",
|
|
"context_nesting": "*",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": [
|
|
"a-tag"
|
|
],
|
|
"optionally-blockable": []
|
|
},
|
|
"origin": "*",
|
|
"expectation": "*"
|
|
},
|
|
{
|
|
"name": "Skip-origins-not-applicable-to-websockets",
|
|
"expansion": "*",
|
|
"source_scheme": "*",
|
|
"opt_in_method": "*",
|
|
"context_nesting": "*",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": [
|
|
"websocket-request"
|
|
],
|
|
"optionally-blockable": []
|
|
},
|
|
"origin": [
|
|
"same-host-https",
|
|
"same-host-http",
|
|
"cross-origin-https",
|
|
"cross-origin-http"
|
|
],
|
|
"expectation": "*"
|
|
},
|
|
{
|
|
"name": "TODO-opt-in-method-img-cross-origin",
|
|
"expansion": "*",
|
|
"source_scheme": "*",
|
|
"opt_in_method": "img-crossorigin",
|
|
"context_nesting": "*",
|
|
"redirection": "*",
|
|
"subresource": {
|
|
"blockable": "*",
|
|
"optionally-blockable": "*"
|
|
},
|
|
"origin": "*",
|
|
"expectation": "*"
|
|
},
|
|
{
|
|
"name": "Skip-redundant-for-opt-in-method",
|
|
"expansion": "*",
|
|
"source_scheme": "*",
|
|
"opt_in_method": [
|
|
"meta-csp",
|
|
"img-crossorigin"
|
|
],
|
|
"context_nesting": "*",
|
|
"redirection": ["keep-scheme-redirect", "swap-scheme-redirect"],
|
|
"subresource": {
|
|
"blockable": "*",
|
|
"optionally-blockable": "*"
|
|
},
|
|
"origin": "*",
|
|
"expectation": "*"
|
|
}
|
|
],
|
|
|
|
"test_expansion_schema": {
|
|
"expansion": [
|
|
"default",
|
|
"override"
|
|
],
|
|
"source_scheme": [
|
|
"http",
|
|
"https"
|
|
],
|
|
"opt_in_method": [
|
|
"no-opt-in",
|
|
"http-csp",
|
|
"meta-csp",
|
|
"img-crossorigin"
|
|
],
|
|
"redirection": [
|
|
"no-redirect",
|
|
"keep-scheme-redirect",
|
|
"swap-scheme-redirect"
|
|
],
|
|
"context_nesting": [
|
|
"top-level",
|
|
"sub-level"
|
|
],
|
|
"origin": [
|
|
"same-host-https",
|
|
"same-host-http",
|
|
"cross-origin-https",
|
|
"cross-origin-http",
|
|
"same-host-wss",
|
|
"same-host-ws",
|
|
"cross-origin-wss",
|
|
"cross-origin-ws"
|
|
],
|
|
"subresource": {
|
|
"blockable": [
|
|
"script-tag",
|
|
"link-css-tag",
|
|
"xhr-request",
|
|
"worker-request",
|
|
"module-worker-top-level",
|
|
"module-data-worker-import",
|
|
"classic-data-worker-fetch",
|
|
"worklet-animation-top-level",
|
|
"worklet-audio-top-level",
|
|
"worklet-layout-top-level",
|
|
"worklet-paint-top-level",
|
|
"worklet-animation-data-import",
|
|
"worklet-audio-data-import",
|
|
"worklet-layout-data-import",
|
|
"worklet-paint-data-import",
|
|
"fetch-request",
|
|
"a-tag",
|
|
"object-tag",
|
|
"picture-tag",
|
|
"websocket-request",
|
|
"link-prefetch-tag",
|
|
"beacon-request"
|
|
],
|
|
"optionally-blockable": [
|
|
"img-tag",
|
|
"audio-tag",
|
|
"video-tag"
|
|
]
|
|
},
|
|
"expectation": [
|
|
"allowed",
|
|
"blocked"
|
|
]
|
|
}
|
|
}
|