diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index c51c6d3a49f..7bab3216695 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -285,6 +285,15 @@ }, "semantics": { "embedded-content": { + "the-img-element": { + "image-loading-lazy-subframe-detached-crash.html": [ + "86a290d50db16d9f19d08bb8a9ad07b0aa52f66d", + [ + null, + {} + ] + ] + }, "the-object-element": { "block-object-with-ruby-crash.html": [ "481a7408e4a4fa91613556b39c9ddc95d568c50c", @@ -136992,19 +137001,6 @@ {} ] ], - "font-display-feature-policy-01.tentative.html": [ - "56b040d8faf6dee3740a288af5c1bf486b1c9e08", - [ - null, - [ - [ - "/css/css-fonts/font-display/font-display-feature-policy-01.tentative-ref.html", - "==" - ] - ], - {} - ] - ], "font-display-feature-policy-02.tentative.html": [ "65f76b07846faf193e2b0900f45211303aa290f9", [ @@ -143642,7 +143638,7 @@ ] ], "repeat-auto-fill-001.html": [ - "e17fc8274f441835888ff57d12bd985d0ece7623", + "9e57028c4cc2757eb3ec52cc214f902562413474", [ null, [ @@ -143655,7 +143651,7 @@ ] ], "repeat-auto-fill-002.html": [ - "38d0bea0d08e6e1b1691a595ac9a1c2dfea59adb", + "80980f14e9f8ccfced29e252114a4337a0dc5aeb", [ null, [ @@ -143668,7 +143664,7 @@ ] ], "repeat-auto-fill-003.html": [ - "b58799bd86bd1ad1f7875a6c9da7e8247136e6f8", + "3a1d2707c37c6861dc97cd6cdd5f2f3739a431c7", [ null, [ @@ -143681,7 +143677,7 @@ ] ], "repeat-auto-fill-004.html": [ - "beacff588a2c6209ee89b8715eccd374b1847ba8", + "9dd8f33eb9b0e8815ea2a407087cb344b1f870a2", [ null, [ @@ -240235,7 +240231,7 @@ ], "security-features": { "README.md": [ - "387e68334aeaaad68a71c3ffa32cf0ca05345b91", + "fb9a2f108f9faf68bb86f0bd9f848dbd28630ca4", [] ], "resources": { @@ -240370,7 +240366,11 @@ [] ], "generate.py": [ - "3345d6520691de734977a18d73c94f71b446408a", + "057c4d81ef1e110be161360ea3f1ea092702d21d", + [] + ], + "spec.src.json": [ + "7cf6a06c0f53492b7cb0f54b6db90688b649c1fc", [] ], "spec_validator.py": [ @@ -283615,14 +283615,6 @@ "e06a55939995ed04a5745bc0dd4cf28113f918c8", [] ], - "font-display-feature-policy-01.tentative-ref.html": [ - "fc43ebc49b5a84486dff5b3f82134b0b8807d025", - [] - ], - "font-display-feature-policy-01.tentative.html.headers": [ - "0c3e29db99f07ddc1bb3c07cac24e2904e546b1b", - [] - ], "font-display-feature-policy-02.tentative-ref.html": [ "019043fd116d0b9581fc187767b2552558906cf1", [] @@ -283631,14 +283623,6 @@ "e6c4898d5d3d28fa225e834674dfb768dbcf55d7", [] ], - "font-display-feature-policy-report-only.tentative.html.headers": [ - "e6c4898d5d3d28fa225e834674dfb768dbcf55d7", - [] - ], - "font-display-feature-policy-reporting.tentative.html.headers": [ - "0c3e29db99f07ddc1bb3c07cac24e2904e546b1b", - [] - ], "font-display-preload-ref.html": [ "e3ba8caa32f13479896e82afcaab654a3785375f", [] @@ -291082,11 +291066,11 @@ [] ], "repeat-auto-fill-001-ref.html": [ - "bbf5d374589b29c9c0dcb04b941160a94130b3a1", + "8cd0ef66b974e808463b51db603476adee3b5f5d", [] ], "repeat-auto-fill-004-ref.html": [ - "07ba960200b1fe9ba69448da8e5e9ff1ebf547fd", + "ca2729fa3f2af414f8a176b9f162ee0d5f3ebc40", [] ], "repeat-auto-fill-005-ref.html": [ @@ -309661,6 +309645,14 @@ "font-display-document-policy-01.tentative.html.headers": [ "e1387f50deead65859267b376367a5eb2a92482d", [] + ], + "font-display-document-policy-report-only.tentative.html.headers": [ + "e090edd0da42f4e98c400f84fb42232adbe95ab6", + [] + ], + "font-display-document-policy-reporting.tentative.html.headers": [ + "84ad7cbf97bcbfd9f56bfeef5bc5928b8819ae4e", + [] ] }, "required-policy": { @@ -315438,6 +315430,10 @@ "43c44cffd64e01f12a8d0dc22bbddfdd05a79a90", [] ], + "report-only-require-corp.https.html.headers": [ + "289659a41fdf41178781c764643f8946f4ec09b7", + [] + ], "require-corp-about-blank.html.headers": [ "8df98474b589d070992677cb0134bd47bd0509c4", [] @@ -315515,6 +315511,10 @@ "30ddeac2e7a3596de3910def1a7066e817873cbe", [] ], + "report.py": [ + "8adf3009d08e2311cdf9c2008d7a10a0882ce030", + [] + ], "require-corp-sw.js": [ "3e2f069ded033f33528c8f850d330c5b4e84e46c", [] @@ -315527,6 +315527,18 @@ "9db755226020479fd87e87f42ea622c999b38f7d", [] ], + "stash-take.py": [ + "73e0def86caed347bf673b0daa8df46b9a4e074d", + [] + ], + "subresource-corp.html": [ + "4b029700e0e9a7545dae07df489eef7e32256030", + [] + ], + "subresource-corp.html.sub.headers": [ + "00609991031ea5a07c5a3fa802fcc73dcd00863e", + [] + ], "sw-store-to-cache-storage.js": [ "00b9e9395a7ec2171b3fee9d75f6ccb1d46ee60f", [] @@ -325155,6 +325167,10 @@ "2ea3d38240e527f10af7ef392e0c0935a3750572", [] ], + "origin-policy.idl": [ + "e48e0632bd89ff764fa9b3864207b39723a388cf", + [] + ], "page-visibility.idl": [ "6b8bd52a047ce411b968a79e6d0f7d152ab32a57", [] @@ -325268,7 +325284,7 @@ [] ], "shape-detection-api.idl": [ - "51c996959bea2acc1b2d0a3c3be438b0c6182e23", + "5b1c45a773987eb8ce8b59fd5b98c2f0c9ae4ea5", [] ], "speech-api.idl": [ @@ -325288,7 +325304,7 @@ [] ], "trusted-types.tentative.idl": [ - "be58b63b2c3d10e8a53ac2af7388e9a44f8fa3e6", + "5442d8b44e65d21cbfddbef6b5b323390640e6bb", [] ], "uievents.idl": [ @@ -325380,7 +325396,7 @@ [] ], "webrtc-stats.idl": [ - "d1a54898b9a62e85a3c1488704afe736058d5e93", + "f66b0791cb2fae4665a6df8cde1d1c67a18797f6", [] ], "webrtc-svc.idl": [ @@ -326300,16 +326316,20 @@ [] ], "README.md": [ - "641969d932cf827f947d0e70d0f92a40ecab31fd", + "953611f93037cfebe0459d5f67599b727539ae40", [] ], "resources": { - "common.js": [ - "36df1d8c1557ec5e02c1b69dfe2687e1898bb457", + "child.sub.html": [ + "f52b5eefbc5d0cf0dd88ee9103f851d632268f5d", [] ], - "iframe.sub.html": [ - "b1a476cff2e8af1550083a57e62fa7a0b2e9af1c", + "common.js": [ + "92ff11b35b1d6ab501a7b7dbac52411c08711a83", + [] + ], + "grandchild.sub.html": [ + "98522e0649e505d66766b9d8c62946a5513aa5a1", [] ] } @@ -328299,7 +328319,7 @@ [] ], "spec_json.js": [ - "af9cf72857e5d640bad18b441f1d3c81bc44a2de", + "c36a535f45363654bfd7c8b86f3710995f769f63", [] ], "test-case.sub.js": [ @@ -328308,7 +328328,7 @@ ] }, "spec.src.json": [ - "547dc97504029dcac4a006113d538f3813a2c2b6", + "16843700da8f314638aafaa517797152cab6f02f", [] ] }, @@ -337249,7 +337269,7 @@ [] ], "spec_json.js": [ - "a8b723d5a98f9748689faf31e95bd2c7a887b079", + "fbe59a2cc9cc5fec5ddd8a0d35354cca787dd515", [] ], "test-case.sub.js": [ @@ -337258,7 +337278,7 @@ ] }, "spec.src.json": [ - "d32ee80a8d2ce1edd57b09f919732eefa4f6caeb", + "9063428647a33acfefb5bd35a74f0f080de09510", [] ] }, @@ -342485,7 +342505,7 @@ [] ], "test_valid.py": [ - "4573541bf5864badfa39a155c5d62d71a18911e0", + "aa1ce20cd6d36191d96e2080393a70b13d8aa1df", [] ] } @@ -347697,7 +347717,7 @@ ] }, "requirements.txt": [ - "99898d1736daadaca5b422c5c4e80becb742e94e", + "6cd14095d9ba1fcf49b9e403a644008e8fe2ca3b", [] ], "requirements_android_webview.txt": [ @@ -347729,7 +347749,7 @@ [] ], "requirements_firefox.txt": [ - "f2d02e0b8a3f8fcb4eec55bd61ffe70a8c3d05f7", + "ae72940810432bed693c001d4b057a1214fd2dac", [] ], "requirements_ie.txt": [ @@ -348826,7 +348846,7 @@ [] ], "trusted-types-eval-reporting-no-unsafe-eval.tentative.https.html.headers": [ - "30fe3b1df1d8f10ea4eb495f53bf93066a9e5ecd", + "e4147bd2e372e4498f9a6ca138f9f29f4750561f", [] ], "trusted-types-eval-reporting-report-only.tentative.https.html.headers": [ @@ -348834,7 +348854,7 @@ [] ], "trusted-types-eval-reporting.tentative.https.html.headers": [ - "91a2be91ef749e470f8998d7058871484dcb274d", + "3f55bba7d1b8d0965d3f9f29c7db301806f7c1a0", [] ], "trusted-types-report-only.tentative.https.html.headers": [ @@ -349369,7 +349389,7 @@ }, "generic": { "spec_json.js": [ - "0adba4938d47d896fa2d343f58022cfa113615da", + "c0ef97148952f32e7c510b8a485f6d2da0e4a177", [] ], "test-case.sub.js": [ @@ -349462,7 +349482,7 @@ } }, "spec.src.json": [ - "70417038bcccc269cb5fb40df09dfe7ec0f7b578", + "d64315903aa66dd5c9ffd19bf862e96ac26b3a64", [] ], "support": { @@ -384090,7 +384110,7 @@ ] ], "AnimationEffect-updateTiming.tentative.html": [ - "de6953c761facd400a37572419e3c97f42b4cfed", + "e6556dac4bde9fd436237cb78f5e88a1968be7d1", [ null, {} @@ -384118,7 +384138,7 @@ ] ], "CSSAnimation-effect.tentative.html": [ - "95a904187204286a49a17377d3201f4918128566", + "5e2d18b5bf9659e9cf8930c151abcd2a12635fa0", [ null, { @@ -387413,20 +387433,6 @@ null, {} ] - ], - "font-display-feature-policy-report-only.tentative.html": [ - "ff3a7f197835370a2eaaf96cf920b0f09d3d8405", - [ - null, - {} - ] - ], - "font-display-feature-policy-reporting.tentative.html": [ - "6f6a51a28fda5c9f5816bf6c54dc7fba5f462475", - [ - null, - {} - ] ] }, "font-feature-settings-serialization-001.html": [ @@ -392581,21 +392587,21 @@ }, "css-page": { "page-rule-declarations-000.html": [ - "227b9148a3870617ffccff141e1f763a631024b6", + "cbe53855a0a6869dfc49d5997bba7584b04dcbdd", [ null, {} ] ], "page-rule-declarations-001.html": [ - "e57424029ba827862e7be5bd1c7e949b74c58331", + "dc225b5abdc5fb5d4ad27e5c7b251c7b988b31f9", [ null, {} ] ], "page-rule-declarations-002.html": [ - "183072dec676d6e913c3ed35935d5e06f3fd4963", + "b35fa29244cc89ad37c6e988c4cd6d9277061161", [ null, {} @@ -407590,6 +407596,22 @@ ] }, "document-policy": { + "font-display": { + "font-display-document-policy-report-only.tentative.html": [ + "03fa5b68a3ef8a587a72fba5b37fd5145307e1b0", + [ + null, + {} + ] + ], + "font-display-document-policy-reporting.tentative.html": [ + "db871d19f7e9f73419aabadb44e978579678990c", + [ + null, + {} + ] + ] + }, "required-policy": { "document-policy.html": [ "1935be3dd0a961add3d80aa35ded92734d9f8869", @@ -407786,7 +407808,7 @@ ] ], "Event-dispatch-click.html": [ - "2241d57e5118843a37601bd6feae9645a82961a7", + "7690f753d9cd0b47f2c2c25352576caed970cd19", [ null, {} @@ -407799,6 +407821,13 @@ {} ] ], + "Event-dispatch-detached-input-and-change.html": [ + "a53ae71ac2a08d901b9ac8aaf35912cbbdcb7746", + [ + null, + {} + ] + ], "Event-dispatch-handlers-changed.html": [ "24e6fd70cb4ec4d44905ba8624280a526ef888c6", [ @@ -431333,6 +431362,22 @@ } ] ], + "report-only-require-corp.https.html": [ + "ff9e5b64a084eb2d2d990c3a7660633468772ff8", + [ + null, + { + "timeout": "long" + } + ] + ], + "reporting.https.html": [ + "3a0aebe49a7baf67ad2e3fc1ac57eb6bf3fbb5f2", + [ + null, + {} + ] + ], "require-corp-about-blank.html": [ "5c51df71ae5b6a84f5c68c90a4012729a9e9c380", [ @@ -451108,7 +451153,7 @@ }, "measure-memory": { "measure-memory-cross-origin-iframe.tentative.window.js": [ - "15590560ee93b908519794342bfc129509d36893", + "c8dcbb77edd33fd8c29678eeaedd3792dea172bc", [ "measure-memory/measure-memory-cross-origin-iframe.tentative.window.html", { @@ -451131,7 +451176,7 @@ ] ], "measure-memory-same-origin-iframe.tentative.window.js": [ - "519ed85864da59e1965a27371b3184f0a56523b9", + "24700e51c2439671ae10e6fc5a6e2d725906ca59", [ "measure-memory/measure-memory-same-origin-iframe.tentative.window.html", { @@ -451153,30 +451198,10 @@ } ] ], - "measure-memory.tentative.any.js": [ - "22ec66c3460f0bad637eded4a5f8282c5b3081ac", + "measure-memory.tentative.window.js": [ + "0c595eda73a2d8e5dd1b8749e40e120f651dffb4", [ - "measure-memory/measure-memory.tentative.any.html", - { - "script_metadata": [ - [ - "script", - "/common/get-host-info.sub.js" - ], - [ - "script", - "./resources/common.js" - ], - [ - "timeout", - "long" - ] - ], - "timeout": "long" - } - ], - [ - "measure-memory/measure-memory.tentative.any.worker.html", + "measure-memory/measure-memory.tentative.window.html", { "script_metadata": [ [ @@ -472586,6 +472611,15 @@ } ] ], + "pointerevent_pointercapture-not-lost-in-chorded-buttons.html": [ + "02a6af0a4b89abf1c0c51844ace15b54e91966e9", + [ + null, + { + "testdriver": true + } + ] + ], "pointerevent_pointercapture_in_frame.html": [ "a4107fd707a2ec4cb40d22fcad786db0b42471d6", [ @@ -528772,7 +528806,7 @@ ] ], "idlharness.https.any.js": [ - "e7f2cc8ff862d5b25a7ebf55eb6e2448f79688ad", + "da60edbee630db75d42242b051bda7ea94a12b5b", [ "shape-detection/idlharness.https.any.html", { @@ -528788,10 +528822,6 @@ [ "script", "/resources/idlharness.js" - ], - [ - "script", - "/shape-detection/resources/shapedetection-helpers.js" ] ] } @@ -528811,10 +528841,6 @@ [ "script", "/resources/idlharness.js" - ], - [ - "script", - "/shape-detection/resources/shapedetection-helpers.js" ] ] } @@ -528834,10 +528860,6 @@ [ "script", "/resources/idlharness.js" - ], - [ - "script", - "/shape-detection/resources/shapedetection-helpers.js" ] ] } @@ -528857,10 +528879,6 @@ [ "script", "/resources/idlharness.js" - ], - [ - "script", - "/shape-detection/resources/shapedetection-helpers.js" ] ] } @@ -538130,13 +538148,6 @@ {} ] ], - "TrustedTypePolicy-getPolicyNames.tentative.html": [ - "d1ae9e45c0669a5aadce7c09d1e3c56360583708", - [ - null, - {} - ] - ], "TrustedTypePolicyFactory-constants.tentative.html": [ "0ba2eb62375a57c78f1caba4592e880b92483599", [ @@ -538173,7 +538184,7 @@ ] ], "TrustedTypePolicyFactory-createPolicy-nameTests.tentative.html": [ - "f049484f1199a088db7e60c4b899a1150c70906b", + "9fdafb2ccf04bf2808e3399d64c83a131c8648d2", [ null, {} @@ -538308,7 +538319,7 @@ ] ], "csp-block-eval.tentative.html": [ - "7902ca4040f582427e36941b6779e1bcdc51abf8", + "e3911bf9e6a9340a35906d9ec70f71f6b8152951", [ null, {} @@ -538350,7 +538361,7 @@ ] ], "eval-csp-tt-default-policy.tentative.html": [ - "eaa74eaf4cd03e0aa3da97e26f700317945a87da", + "106a024f2c1a8f4e2b2e99d2f15a81457179d807", [ null, {} @@ -538459,7 +538470,7 @@ ] ], "trusted-types-eval-reporting-no-unsafe-eval.tentative.https.html": [ - "40c1ccc69a1b186f2f8820091c68edade5dceedc", + "081f9becbd09e7875ca3786842b9d2495df7e9ba", [ null, {} @@ -538473,7 +538484,7 @@ ] ], "trusted-types-eval-reporting.tentative.https.html": [ - "dec8a07cfc4bbdf60eda9819bbf6d16a587906a7", + "9621aaba9749a9522703f87bfd23466545f14a70", [ null, {} @@ -547654,7 +547665,7 @@ ] ], "animate.html": [ - "ba10b172c2d4ec20b92a8283740a1045d52d4e54", + "bfe351250ffc28e9681cd2534024eefef33d2fc8", [ null, {} @@ -547885,14 +547896,14 @@ ] ], "processing-a-keyframes-argument-001.html": [ - "87e60a2b1085125040a454763216ed335f249e6c", + "654d4db7c79bd7f94727a38e595ab8d78c2172f2", [ null, {} ] ], "processing-a-keyframes-argument-002.html": [ - "4b0e15c9a2f73a81eb181691c8c096fecc55edae", + "8620f883f98f17a71adcbd7364c6ae942d830a45", [ null, {} @@ -547913,7 +547924,7 @@ ] ], "target.html": [ - "eaef10fcb51050e8279393760cf75f6ea70397c8", + "6951682c4d8af29736e1ec655b65e4147aee9538", [ null, {} @@ -550839,7 +550850,7 @@ ] ], "createcredential-badargs-rp.https.html": [ - "8886cc15c92e0ae98f0c65d6d1daa92cb93acfb7", + "fa4d2264fefe8be7da1de8ecefeeb60da27511e0", [ null, { @@ -550879,7 +550890,7 @@ ] ], "createcredential-passing.https.html": [ - "ab10c7f519a6868c28c233fa6f933da925fe3dc9", + "a94be363da20214ac84950b2bb701d428372dd10", [ null, { @@ -550909,7 +550920,7 @@ ] ], "getcredential-badargs-rpid.https.html": [ - "6e0ef5f201842f878d4cc2cd38a05e1923c992a8", + "3f9d3f2177fd9624da6bebfabedae7c57f3152a8", [ null, { @@ -550939,7 +550950,7 @@ ] ], "getcredential-passing.https.html": [ - "dae05e0993a0358ec77c3c2c7981c39a7483c82e", + "c5237d2cda27e573ee591e95fdad92fae06e56a7", [ null, { diff --git a/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-002.html.ini b/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-002.html.ini deleted file mode 100644 index f64b45fea6b..00000000000 --- a/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-002.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[hit-test-floats-002.html] - [Hit test float] - expected: FAIL - diff --git a/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-003.html.ini b/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-003.html.ini deleted file mode 100644 index f29da48a2a0..00000000000 --- a/tests/wpt/metadata/css/CSS2/floats/hit-test-floats-003.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[hit-test-floats-003.html] - [Miss float below something else] - expected: FAIL - diff --git a/tests/wpt/metadata/css/compositing/mix-blend-mode/mix-blend-mode-paragraph.html.ini b/tests/wpt/metadata/css/compositing/mix-blend-mode/mix-blend-mode-paragraph.html.ini new file mode 100644 index 00000000000..fb5b6fd0006 --- /dev/null +++ b/tests/wpt/metadata/css/compositing/mix-blend-mode/mix-blend-mode-paragraph.html.ini @@ -0,0 +1,2 @@ +[mix-blend-mode-paragraph.html] + expected: FAIL diff --git a/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-01.tentative.html.ini b/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-01.tentative.html.ini deleted file mode 100644 index d19959b9c59..00000000000 --- a/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-01.tentative.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[font-display-feature-policy-01.tentative.html] - expected: FAIL diff --git a/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-report-only.tentative.html.ini b/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-report-only.tentative.html.ini deleted file mode 100644 index 64e43bcc512..00000000000 --- a/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-report-only.tentative.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[font-display-feature-policy-report-only.tentative.html] - expected: ERROR - [font-display-late-swap Report Format] - expected: NOTRUN - diff --git a/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-reporting.tentative.html.ini b/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-reporting.tentative.html.ini deleted file mode 100644 index 60bd3dd7e05..00000000000 --- a/tests/wpt/metadata/css/css-fonts/font-display/font-display-feature-policy-reporting.tentative.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[font-display-feature-policy-reporting.tentative.html] - expected: ERROR - [font-display-late-swap Report Format] - expected: NOTRUN - diff --git a/tests/wpt/metadata/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini b/tests/wpt/metadata/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini index e35a452a186..70a00a101f6 100644 --- a/tests/wpt/metadata/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini +++ b/tests/wpt/metadata/css/css-transitions/no-transition-from-ua-to-blocking-stylesheet.html.ini @@ -1,2 +1,2 @@ [no-transition-from-ua-to-blocking-stylesheet.html] - expected: TIMEOUT + expected: FAIL diff --git a/tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini b/tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini deleted file mode 100644 index 4c79907309b..00000000000 --- a/tests/wpt/metadata/css/cssom-view/CaretPosition-001.html.ini +++ /dev/null @@ -1,4 +0,0 @@ -[CaretPosition-001.html] - [Element at (400, 100)] - expected: FAIL - diff --git a/tests/wpt/metadata/css/cssom-view/MediaQueryList-addListener-removeListener.html.ini b/tests/wpt/metadata/css/cssom-view/MediaQueryList-addListener-removeListener.html.ini index 628b1fab770..c884dc82eab 100644 --- a/tests/wpt/metadata/css/cssom-view/MediaQueryList-addListener-removeListener.html.ini +++ b/tests/wpt/metadata/css/cssom-view/MediaQueryList-addListener-removeListener.html.ini @@ -2,3 +2,6 @@ [listeners are called when + diff --git a/tests/wpt/web-platform-tests/interfaces/origin-policy.idl b/tests/wpt/web-platform-tests/interfaces/origin-policy.idl new file mode 100644 index 00000000000..e48e0632bd8 --- /dev/null +++ b/tests/wpt/web-platform-tests/interfaces/origin-policy.idl @@ -0,0 +1,8 @@ +// GENERATED CONTENT - DO NOT EDIT +// Content was automatically extracted by Reffy into reffy-reports +// (https://github.com/tidoust/reffy-reports) +// Source: Origin Policy (https://wicg.github.io/origin-policy/) + +partial interface mixin WindowOrWorkerGlobalScope { + readonly attribute FrozenArray originPolicyIds; +}; diff --git a/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl b/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl index 51c996959be..5b1c45a7739 100644 --- a/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl +++ b/tests/wpt/web-platform-tests/interfaces/shape-detection-api.idl @@ -15,12 +15,9 @@ dictionary FaceDetectorOptions { boolean fastMode; }; -[Exposed=(Window,Worker), - SecureContext, - Serializable] -interface DetectedFace { - [SameObject] readonly attribute DOMRectReadOnly boundingBox; - [SameObject] readonly attribute FrozenArray? landmarks; +dictionary DetectedFace { + required DOMRectReadOnly boundingBox; + required FrozenArray? landmarks; }; dictionary Landmark { @@ -47,14 +44,11 @@ dictionary BarcodeDetectorOptions { sequence formats; }; -[Exposed=(Window,Worker), - SecureContext, - Serializable] -interface DetectedBarcode { - [SameObject] readonly attribute DOMRectReadOnly boundingBox; - [SameObject] readonly attribute DOMString rawValue; - [SameObject] readonly attribute BarcodeFormat format; - [SameObject] readonly attribute FrozenArray cornerPoints; +dictionary DetectedBarcode { + required DOMRectReadOnly boundingBox; + required DOMString rawValue; + required BarcodeFormat format; + required FrozenArray cornerPoints; }; enum BarcodeFormat { diff --git a/tests/wpt/web-platform-tests/interfaces/trusted-types.tentative.idl b/tests/wpt/web-platform-tests/interfaces/trusted-types.tentative.idl index be58b63b2c3..5442d8b44e6 100644 --- a/tests/wpt/web-platform-tests/interfaces/trusted-types.tentative.idl +++ b/tests/wpt/web-platform-tests/interfaces/trusted-types.tentative.idl @@ -23,7 +23,6 @@ interface TrustedScriptURL { interface TrustedTypePolicyFactory { [Unforgeable] TrustedTypePolicy createPolicy(DOMString policyName, TrustedTypePolicyOptions policyOptions); // All the policy object names that have been created - [Unforgeable] sequence getPolicyNames(); }; [Exposed=(Window, Worker)] diff --git a/tests/wpt/web-platform-tests/interfaces/webrtc-stats.idl b/tests/wpt/web-platform-tests/interfaces/webrtc-stats.idl index d1a54898b9a..f66b0791cb2 100644 --- a/tests/wpt/web-platform-tests/interfaces/webrtc-stats.idl +++ b/tests/wpt/web-platform-tests/interfaces/webrtc-stats.idl @@ -203,7 +203,7 @@ dictionary RTCVideoSourceStats : RTCMediaSourceStats { unsigned long height; unsigned long bitDepth; unsigned long frames; - unsigned long framesPerSecond; + double framesPerSecond; }; dictionary RTCRtpContributingSourceStats : RTCStats { @@ -220,7 +220,7 @@ dictionary RTCPeerConnectionStats : RTCStats { unsigned long dataChannelsAccepted; }; -dictionary RTCRtpTransceiverStats { +dictionary RTCRtpTransceiverStats : RTCStats { DOMString senderId; DOMString receiverId; DOMString mid; @@ -257,7 +257,7 @@ dictionary RTCAudioReceiverStats : RTCAudioHandlerStats { dictionary RTCDataChannelStats : RTCStats { DOMString label; DOMString protocol; - long dataChannelIdentifier; + unsigned short dataChannelIdentifier; DOMString transportId; RTCDataChannelState state; unsigned long messagesSent; @@ -354,95 +354,3 @@ dictionary RTCIceServerStats : RTCStats { unsigned long totalResponsesReceived; double totalRoundTripTime; }; - -dictionary RTCMediaStreamStats : RTCStats { - DOMString streamIdentifier; - sequence trackIds; -}; - -dictionary RTCSenderVideoTrackAttachmentStats : RTCVideoSenderStats { -}; - -dictionary RTCSenderAudioTrackAttachmentStats : RTCAudioSenderStats { -}; - -dictionary RTCReceiverVideoTrackAttachmentStats : RTCVideoReceiverStats {}; - -dictionary RTCReceiverAudioTrackAttachmentStats : RTCAudioReceiverStats {}; - -partial dictionary RTCCodecStats { - DOMString implementation; -}; - -partial dictionary RTCIceCandidateStats { - boolean deleted = false; - boolean isRemote; -}; - -partial dictionary RTCIceCandidatePairStats { - double totalRtt; - double currentRtt; - unsigned long long priority; -}; - -partial dictionary RTCRtpStreamStats { - DOMString mediaType; - double averageRTCPInterval; -}; - -partial dictionary RTCInboundRtpStreamStats { - double fractionLost; -}; - -partial dictionary RTCAudioHandlerStats { - double audioLevel; - double totalAudioEnergy; - double totalSamplesDuration; - boolean voiceActivityFlag; -}; - -partial dictionary RTCAudioSenderStats { - unsigned long long totalSamplesSent; - double echoReturnLoss; - double echoReturnLossEnhancement; -}; - -partial dictionary RTCAudioReceiverStats { - DOMHighResTimeStamp estimatedPlayoutTimestamp; - double jitterBufferDelay; - unsigned long long jitterBufferEmittedCount; - unsigned long long totalSamplesReceived; - unsigned long long concealedSamples; - unsigned long long silentConcealedSamples; - unsigned long long concealmentEvents; - unsigned long long insertedSamplesForDeceleration; - unsigned long long removedSamplesForAcceleration; - double audioLevel; - double totalAudioEnergy; - double totalSamplesDuration; -}; - -partial dictionary RTCVideoHandlerStats { - unsigned long frameWidth; - unsigned long frameHeight; - double framesPerSecond; -}; - -partial dictionary RTCVideoSenderStats { - unsigned long keyFramesSent; - unsigned long framesCaptured; - unsigned long framesSent; - unsigned long hugeFramesSent; -}; - -partial dictionary RTCVideoReceiverStats { - unsigned long keyFramesReceived; - DOMHighResTimeStamp estimatedPlayoutTimestamp; - double jitterBufferDelay; - unsigned long long jitterBufferEmittedCount; - unsigned long framesReceived; - unsigned long framesDecoded; - unsigned long framesDropped; - unsigned long partialFramesLost; - unsigned long fullFramesLost; -}; diff --git a/tests/wpt/web-platform-tests/measure-memory/README.md b/tests/wpt/web-platform-tests/measure-memory/README.md index 641969d932c..953611f9303 100644 --- a/tests/wpt/web-platform-tests/measure-memory/README.md +++ b/tests/wpt/web-platform-tests/measure-memory/README.md @@ -4,5 +4,5 @@ Tests in this directory are for the proposed performance.measureMemory API. This is not yet standardised and browsers should not be expected to pass these tests. -See the explainer at https://github.com/ulan/performance-measure-memory +See the explainer at https://github.com/WICG/performance-measure-memory for more information about the API. diff --git a/tests/wpt/web-platform-tests/measure-memory/measure-memory-cross-origin-iframe.tentative.window.js b/tests/wpt/web-platform-tests/measure-memory/measure-memory-cross-origin-iframe.tentative.window.js index 15590560ee9..c8dcbb77edd 100644 --- a/tests/wpt/web-platform-tests/measure-memory/measure-memory-cross-origin-iframe.tentative.window.js +++ b/tests/wpt/web-platform-tests/measure-memory/measure-memory-cross-origin-iframe.tentative.window.js @@ -5,12 +5,15 @@ promise_test(async testCase => { const frame = document.createElement("iframe"); - const path = new URL("resources/iframe.sub.html", window.location).pathname; - frame.src = `${CROSS_ORIGIN}${path}`; + const child = getUrl(CROSS_ORIGIN, "resources/child.sub.html"); + const grandchild = getUrl(CROSS_ORIGIN, "resources/grandchild.sub.html"); + frame.src = child; document.body.append(frame); try { let result = await performance.measureMemory(); - checkMeasureMemory(result); + checkMeasureMemory(result, { + allowed: [window.location.href, child] + }); } catch (error) { if (!(error instanceof DOMException)) { throw error; diff --git a/tests/wpt/web-platform-tests/measure-memory/measure-memory-same-origin-iframe.tentative.window.js b/tests/wpt/web-platform-tests/measure-memory/measure-memory-same-origin-iframe.tentative.window.js index 519ed85864d..24700e51c24 100644 --- a/tests/wpt/web-platform-tests/measure-memory/measure-memory-same-origin-iframe.tentative.window.js +++ b/tests/wpt/web-platform-tests/measure-memory/measure-memory-same-origin-iframe.tentative.window.js @@ -5,12 +5,15 @@ promise_test(async testCase => { const frame = document.createElement("iframe"); - const path = new URL("resources/iframe.sub.html", window.location).pathname; - frame.src = `${SAME_ORIGIN}${path}`; + const child = getUrl(SAME_ORIGIN, "resources/child.sub.html"); + const grandchild = getUrl(SAME_ORIGIN, "resources/grandchild.sub.html"); + frame.src = child; document.body.append(frame); try { let result = await performance.measureMemory(); - checkMeasureMemory(result); + checkMeasureMemory(result, { + allowed: [window.location.href, child, grandchild], + }); } catch (error) { if (!(error instanceof DOMException)) { throw error; diff --git a/tests/wpt/web-platform-tests/measure-memory/measure-memory.tentative.any.js b/tests/wpt/web-platform-tests/measure-memory/measure-memory.tentative.window.js similarity index 85% rename from tests/wpt/web-platform-tests/measure-memory/measure-memory.tentative.any.js rename to tests/wpt/web-platform-tests/measure-memory/measure-memory.tentative.window.js index 22ec66c3460..0c595eda73a 100644 --- a/tests/wpt/web-platform-tests/measure-memory/measure-memory.tentative.any.js +++ b/tests/wpt/web-platform-tests/measure-memory/measure-memory.tentative.window.js @@ -6,7 +6,7 @@ promise_test(async testCase => { try { let result = await performance.measureMemory(); - checkMeasureMemory(result); + checkMeasureMemory(result, {allowed: [window.location.href]}); } catch (error) { if (!(error instanceof DOMException)) { throw error; diff --git a/tests/wpt/web-platform-tests/measure-memory/resources/child.sub.html b/tests/wpt/web-platform-tests/measure-memory/resources/child.sub.html new file mode 100644 index 00000000000..f52b5eefbc5 --- /dev/null +++ b/tests/wpt/web-platform-tests/measure-memory/resources/child.sub.html @@ -0,0 +1,8 @@ + + + + + Hello from child iframe. + + + diff --git a/tests/wpt/web-platform-tests/measure-memory/resources/common.js b/tests/wpt/web-platform-tests/measure-memory/resources/common.js index 36df1d8c155..92ff11b35b1 100644 --- a/tests/wpt/web-platform-tests/measure-memory/resources/common.js +++ b/tests/wpt/web-platform-tests/measure-memory/resources/common.js @@ -1,27 +1,33 @@ const SAME_ORIGIN = {origin: get_host_info().HTTPS_ORIGIN, name: "SAME_ORIGIN"}; const CROSS_ORIGIN = {origin: get_host_info().HTTPS_NOTSAMESITE_ORIGIN, name: "CROSS_ORIGIN"} -function checkMeasureMemoryBreakdown(breakdown) { +function checkMeasureMemoryBreakdown(breakdown, options) { + let allowed = new Set(options.allowed); assert_own_property(breakdown, 'bytes'); assert_greater_than_equal(breakdown.bytes, 0); - assert_own_property(breakdown, 'globals'); - assert_greater_than_equal(breakdown.globals, 0); assert_own_property(breakdown, 'type'); assert_equals(typeof breakdown.type, 'string'); - assert_own_property(breakdown, 'origins'); - assert_greater_than_equal(breakdown.origins.length, 1); - for (let origin of breakdown.origins) { - assert_equals(typeof origin, 'string'); + assert_own_property(breakdown, 'attribution'); + for (let attribution of breakdown.attribution) { + assert_equals(typeof attribution, 'string'); + assert_true( + allowed.has(attribution), + `${attribution} must be in ${JSON.stringify(options.allowed)}`); } } -function checkMeasureMemory(result) { +function checkMeasureMemory(result, options) { assert_own_property(result, 'bytes'); assert_own_property(result, 'breakdown'); let bytes = 0; for (let breakdown of result.breakdown) { - checkMeasureMemoryBreakdown(breakdown); + checkMeasureMemoryBreakdown(breakdown, options); bytes += breakdown.bytes; } assert_equals(bytes, result.bytes); +} + +function getUrl(host, relativePath) { + const path = new URL(relativePath, window.location).pathname; + return `${host.origin}/${path}`; } \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/measure-memory/resources/iframe.sub.html b/tests/wpt/web-platform-tests/measure-memory/resources/grandchild.sub.html similarity index 67% rename from tests/wpt/web-platform-tests/measure-memory/resources/iframe.sub.html rename to tests/wpt/web-platform-tests/measure-memory/resources/grandchild.sub.html index b1a476cff2e..98522e0649e 100644 --- a/tests/wpt/web-platform-tests/measure-memory/resources/iframe.sub.html +++ b/tests/wpt/web-platform-tests/measure-memory/resources/grandchild.sub.html @@ -2,6 +2,6 @@ - Hello from iframe. + Hello from grandchild iframe. diff --git a/tests/wpt/web-platform-tests/mixed-content/generic/spec_json.js b/tests/wpt/web-platform-tests/mixed-content/generic/spec_json.js index af9cf72857e..c36a535f453 100644 --- a/tests/wpt/web-platform-tests/mixed-content/generic/spec_json.js +++ b/tests/wpt/web-platform-tests/mixed-content/generic/spec_json.js @@ -1 +1 @@ -var SPEC_JSON = {"selection_pattern": "%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s", "test_file_path_pattern": "gen/%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s.html", "test_description_template": "Mixed-Content: Expects %(expectation)s for %(subresource)s to %(origin)s origin and %(redirection)s redirection from %(source_scheme)s context.", "test_page_title_template": "Mixed-Content: %(title)s", "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", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "*", "subresource": ["audio-tag", "img-tag", "video-tag"], "origin": ["cross-http", "same-http"], "expectation": "blocked"}, {"name": "opt-in-blocks-redirects", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "swap-scheme", "subresource": ["audio-tag", "img-tag", "video-tag"], "origin": ["same-https", "cross-https"], "expectation": "blocked"}, {"name": "no-opt-in-allows", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "subresource": ["audio-tag", "img-tag", "video-tag"], "origin": ["cross-http", "same-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", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "*", "subresource": ["a-tag", "beacon", "fetch", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["cross-http", "same-http"], "expectation": "blocked"}, {"name": "opt-in-blocks-redirects", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "swap-scheme", "subresource": ["a-tag", "beacon", "fetch", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["same-https", "cross-https"], "expectation": "blocked"}, {"name": "no-opt-in-blocks", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "subresource": ["a-tag", "beacon", "fetch", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["cross-http", "same-http"], "expectation": "blocked"}, {"name": "ws-downgrade-blocks", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "websocket", "origin": ["cross-ws", "same-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", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["no-redirect", "keep-scheme"], "subresource": "*", "origin": ["same-https"], "expectation": "allowed"}, {"name": "websocket-allowed", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["no-redirect", "keep-scheme"], "subresource": "websocket", "origin": ["same-wss"], "expectation": "allowed"}]}], "delivery_key": "mixedContent", "excluded_tests": [{"name": "Skip-redundant-no-opt-in", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "http-rp", "delivery_value": null, "redirection": "*", "subresource": "*", "origin": "*", "expectation": "*"}, {"name": "Redundant-subresources", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "a-tag", "origin": "*", "expectation": "*"}, {"name": "Skip-origins-not-applicable-to-websockets", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "websocket", "origin": ["same-https", "same-http", "cross-https", "cross-http"], "expectation": "*"}, {"name": "Websockets are no-redirect only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-scheme", "swap-scheme"], "subresource": "websocket", "origin": "*", "expectation": "*"}, {"name": "Skip-redundant-for-opt-in-method", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "meta", "delivery_value": "opt-in", "redirection": ["keep-scheme", "swap-scheme"], "subresource": "*", "origin": "*", "expectation": "*"}], "source_context_schema": {"supported_delivery_type": {"top": ["http-rp", "meta"], "iframe": ["http-rp", "meta"], "iframe-blank": ["meta"], "srcdoc": ["meta"], "worker-classic": ["http-rp"], "worker-module": ["http-rp"], "worker-classic-data": [], "worker-module-data": [], "sharedworker-classic": ["http-rp"], "sharedworker-module": ["http-rp"], "sharedworker-classic-data": [], "sharedworker-module-data": []}, "supported_subresource": {"top": "*", "iframe": "*", "iframe-blank": "*", "srcdoc": "*", "worker-classic": ["xhr", "fetch", "websocket"], "worker-module": ["xhr", "fetch", "websocket"], "worker-classic-data": ["xhr", "fetch", "websocket"], "worker-module-data": ["xhr", "fetch", "websocket"], "sharedworker-classic": ["xhr", "fetch", "websocket"], "sharedworker-module": ["xhr", "fetch", "websocket"], "sharedworker-classic-data": ["xhr", "fetch", "websocket"], "sharedworker-module-data": ["xhr", "fetch", "websocket"]}}, "subresource_schema": {"supported_delivery_type": {"script-tag": [], "link-css-tag": [], "xhr": [], "worker-classic": [], "worker-module": [], "worker-import-data": [], "sharedworker-classic": [], "sharedworker-module": [], "sharedworker-import-data": [], "worklet-animation": [], "worklet-audio": [], "worklet-layout": [], "worklet-paint": [], "worklet-animation-import-data": [], "worklet-audio-import-data": [], "worklet-layout-import-data": [], "worklet-paint-import-data": [], "fetch": [], "a-tag": [], "object-tag": [], "picture-tag": [], "websocket": [], "link-prefetch-tag": [], "beacon": [], "img-tag": [], "audio-tag": [], "video-tag": []}}, "source_context_list_schema": {"top": {"description": "Policy set by the top-level Document", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-classic-data": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "worker-classic-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "worker-module-data": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "worker-module-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "sharedworker-classic-data": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "sharedworker-classic-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "sharedworker-module-data": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "sharedworker-module-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}}, "test_expansion_schema": {"expansion": ["default", "override"], "source_scheme": ["http", "https"], "delivery_type": ["http-rp", "meta"], "delivery_value": [null, "opt-in"], "source_context_list": ["top", "worker-classic-data", "worker-module-data", "sharedworker-classic-data", "sharedworker-module-data"], "redirection": ["no-redirect", "keep-scheme", "swap-scheme"], "origin": ["same-https", "same-http", "cross-https", "cross-http", "same-wss", "same-ws", "cross-wss", "cross-ws"], "subresource": ["script-tag", "link-css-tag", "xhr", "worker-classic", "worker-module", "worker-import-data", "sharedworker-classic", "sharedworker-module", "sharedworker-import-data", "worklet-animation", "worklet-audio", "worklet-layout", "worklet-paint", "worklet-animation-import-data", "worklet-audio-import-data", "worklet-layout-import-data", "worklet-paint-import-data", "fetch", "a-tag", "object-tag", "picture-tag", "websocket", "link-prefetch-tag", "beacon", "img-tag", "audio-tag", "video-tag"], "expectation": ["allowed", "blocked"]}}; +var SPEC_JSON = {"selection_pattern": "%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s", "test_file_path_pattern": "gen/%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s.html", "excluded_tests": [{"name": "Workers are same-origin only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "origin": ["cross-https", "cross-http", "cross-http-downgrade", "cross-wss", "cross-ws", "cross-ws-downgrade"], "expectation": "*"}, {"name": "Workers are same-origin only (redirects)", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["swap-origin", "swap-scheme"], "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "origin": "*", "expectation": "*"}, {"name": "Websockets are ws/wss-only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "websocket", "origin": ["same-https", "same-http", "same-http-downgrade", "cross-https", "cross-http", "cross-http-downgrade"], "expectation": "*"}, {"name": "Websockets are no-redirect only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-origin", "swap-origin", "keep-scheme", "swap-scheme", "downgrade"], "subresource": "websocket", "origin": "*", "expectation": "*"}, {"name": "ws/wss are websocket-only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": ["area-tag", "a-tag", "fetch", "iframe-tag", "img-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["same-wss", "same-ws", "same-ws-downgrade", "cross-wss", "cross-ws", "cross-ws-downgrade"], "expectation": "*"}, {"name": "Skip-redundant-no-opt-in", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "http-rp", "delivery_value": null, "redirection": "*", "subresource": "*", "origin": "*", "expectation": "*"}, {"name": "Skip-redundant-for-opt-in-method", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "meta", "delivery_value": "opt-in", "redirection": ["keep-scheme", "swap-scheme"], "subresource": "*", "origin": "*", "expectation": "*"}, {"name": "source_context_list values not yet tested", "expansion": "*", "source_scheme": "*", "source_context_list": ["req", "srcdoc-inherit", "srcdoc", "iframe", "iframe-blank-inherit", "worker-classic", "worker-module"], "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "*", "origin": "*", "expectation": "*"}, {"name": "subresource values not yet tested", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": ["a-tag", "area-tag", "iframe-tag"], "origin": "*", "expectation": "*"}, {"name": "redirections that mixed-content tests don't care", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-origin", "swap-origin", "downgrade"], "origin": "*", "subresource": "*", "expectation": "*"}], "source_context_schema": {"supported_subresource": {"top": "*", "iframe": "*", "iframe-blank": "*", "srcdoc": "*", "worker-classic": ["xhr", "fetch", "websocket", "worker-classic", "worker-module"], "worker-module": ["xhr", "fetch", "websocket", "worker-classic", "worker-module"], "worker-classic-data": ["xhr", "fetch", "websocket"], "worker-module-data": ["xhr", "fetch", "websocket"], "sharedworker-classic": ["xhr", "fetch", "websocket"], "sharedworker-module": ["xhr", "fetch", "websocket"], "sharedworker-classic-data": ["xhr", "fetch", "websocket"], "sharedworker-module-data": ["xhr", "fetch", "websocket"]}, "supported_delivery_type": {"top": ["http-rp", "meta"], "iframe": ["http-rp", "meta"], "iframe-blank": ["meta"], "srcdoc": ["meta"], "worker-classic": ["http-rp"], "worker-module": ["http-rp"], "worker-classic-data": [], "worker-module-data": [], "sharedworker-classic": ["http-rp"], "sharedworker-module": ["http-rp"], "sharedworker-classic-data": [], "sharedworker-module-data": []}}, "source_context_list_schema": {"top": {"description": "Policy set by the top-level Document", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "req": {"description": "Subresource request's policy should override Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}], "subresourcePolicyDeliveries": ["nonNullPolicy"]}, "srcdoc-inherit": {"description": "srcdoc iframe without its own policy should inherit parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "srcdoc"}], "subresourcePolicyDeliveries": []}, "srcdoc": {"description": "srcdoc iframe's policy should override parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "srcdoc", "policyDeliveries": ["nonNullPolicy"]}], "subresourcePolicyDeliveries": []}, "iframe": {"description": "external iframe's policy should override parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "iframe", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "iframe-blank-inherit": {"description": "blank iframe should inherit parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "iframe-blank"}], "subresourcePolicyDeliveries": []}, "worker-classic": {"description": "dedicated workers shouldn't inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-classic", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-classic-data": {"description": "data: dedicated workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "worker-classic-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "worker-module": {"description": "dedicated workers shouldn't inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-module", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-module-data": {"description": "data: dedicated workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "worker-module-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "sharedworker-classic-data": {"description": "data: shared workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "sharedworker-classic-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "sharedworker-module-data": {"description": "data: shared workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "sharedworker-module-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}}, "test_expansion_schema": {"expansion": ["default", "override"], "source_scheme": ["http", "https"], "source_context_list": ["top", "req", "srcdoc-inherit", "srcdoc", "iframe", "iframe-blank-inherit", "worker-classic", "worker-classic-data", "worker-module", "worker-module-data", "sharedworker-classic-data", "sharedworker-module-data"], "redirection": ["no-redirect", "keep-origin", "swap-origin", "keep-scheme", "swap-scheme", "downgrade"], "origin": ["same-https", "same-http", "same-http-downgrade", "cross-https", "cross-http", "cross-http-downgrade", "same-wss", "same-ws", "same-ws-downgrade", "cross-wss", "cross-ws", "cross-ws-downgrade"], "subresource": ["a-tag", "area-tag", "audio-tag", "beacon", "fetch", "iframe-tag", "img-tag", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "video-tag", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "delivery_type": ["http-rp", "meta"], "delivery_value": [null, "opt-in"], "expectation": ["allowed", "blocked"]}, "test_description_template": "Mixed-Content: Expects %(expectation)s for %(subresource)s to %(origin)s origin and %(redirection)s redirection from %(source_scheme)s context.", "test_page_title_template": "Mixed-Content: %(title)s", "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", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "*", "subresource": ["audio-tag", "img-tag", "video-tag"], "origin": ["cross-http", "same-http"], "expectation": "blocked"}, {"name": "opt-in-blocks-redirects", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "swap-scheme", "subresource": ["audio-tag", "img-tag", "video-tag"], "origin": ["same-https", "cross-https"], "expectation": "blocked"}, {"name": "no-opt-in-allows", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "subresource": ["audio-tag", "img-tag", "video-tag"], "origin": ["cross-http", "same-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", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "*", "subresource": ["a-tag", "beacon", "fetch", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["cross-http", "same-http"], "expectation": "blocked"}, {"name": "opt-in-blocks-redirects", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "opt-in", "redirection": "swap-scheme", "subresource": ["a-tag", "beacon", "fetch", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["same-https", "cross-https"], "expectation": "blocked"}, {"name": "no-opt-in-blocks", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "subresource": ["a-tag", "beacon", "fetch", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["cross-http", "same-http"], "expectation": "blocked"}, {"name": "ws-downgrade-blocks", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "websocket", "origin": ["cross-ws", "same-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", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["no-redirect", "keep-scheme"], "subresource": "*", "origin": ["same-https"], "expectation": "allowed"}, {"name": "websocket-allowed", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["no-redirect", "keep-scheme"], "subresource": "websocket", "origin": ["same-wss"], "expectation": "allowed"}]}], "delivery_key": "mixedContent", "subresource_schema": {"supported_delivery_type": {"a-tag": [], "area-tag": [], "audio-tag": [], "beacon": [], "fetch": [], "iframe-tag": [], "img-tag": [], "link-css-tag": [], "link-prefetch-tag": [], "object-tag": [], "picture-tag": [], "script-tag": [], "sharedworker-classic": [], "sharedworker-import-data": [], "sharedworker-module": [], "video-tag": [], "websocket": [], "worker-classic": [], "worker-import-data": [], "worker-module": [], "worklet-animation": [], "worklet-animation-import-data": [], "worklet-audio": [], "worklet-audio-import-data": [], "worklet-layout": [], "worklet-layout-import-data": [], "worklet-paint": [], "worklet-paint-import-data": [], "xhr": []}}}; diff --git a/tests/wpt/web-platform-tests/mixed-content/spec.src.json b/tests/wpt/web-platform-tests/mixed-content/spec.src.json index 547dc975040..16843700da8 100644 --- a/tests/wpt/web-platform-tests/mixed-content/spec.src.json +++ b/tests/wpt/web-platform-tests/mixed-content/spec.src.json @@ -1,6 +1,4 @@ { - "selection_pattern": "%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s", - "test_file_path_pattern": "gen/%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s.html", "test_description_template": "Mixed-Content: Expects %(expectation)s for %(subresource)s to %(origin)s origin and %(redirection)s redirection from %(source_scheme)s context.", "test_page_title_template": "Mixed-Content: %(title)s", "specification": [ @@ -269,50 +267,6 @@ "origin": "*", "expectation": "*" }, - { - "name": "Redundant-subresources", - "expansion": "*", - "source_scheme": "*", - "source_context_list": "*", - "delivery_type": "*", - "delivery_value": "*", - "redirection": "*", - "subresource": "a-tag", - "origin": "*", - "expectation": "*" - }, - { - "name": "Skip-origins-not-applicable-to-websockets", - "expansion": "*", - "source_scheme": "*", - "source_context_list": "*", - "delivery_type": "*", - "delivery_value": "*", - "redirection": "*", - "subresource": "websocket", - "origin": [ - "same-https", - "same-http", - "cross-https", - "cross-http" - ], - "expectation": "*" - }, - { - "name": "Websockets are no-redirect only", - "expansion": "*", - "source_scheme": "*", - "source_context_list": "*", - "delivery_type": "*", - "delivery_value": "*", - "redirection": [ - "keep-scheme", - "swap-scheme" - ], - "subresource": "websocket", - "origin": "*", - "expectation": "*" - }, { "name": "Skip-redundant-for-opt-in-method", "expansion": "*", @@ -327,7 +281,59 @@ "subresource": "*", "origin": "*", "expectation": "*" - } + }, + { + "name": "source_context_list values not yet tested", + "expansion": "*", + "source_scheme": "*", + "source_context_list": [ + "req", + "srcdoc-inherit", + "srcdoc", + "iframe", + "iframe-blank-inherit", + "worker-classic", + "worker-module", + ], + "delivery_type": "*", + "delivery_value": "*", + "redirection": "*", + "subresource": "*", + "origin": "*", + "expectation": "*" + }, + { + "name": "subresource values not yet tested", + "expansion": "*", + "source_scheme": "*", + "source_context_list": "*", + "delivery_type": "*", + "delivery_value": "*", + "redirection": "*", + "subresource": [ + "a-tag", + "area-tag", + "iframe-tag", + ], + "origin": "*", + "expectation": "*" + }, + { + "name": "redirections that mixed-content tests don't care", + "expansion": "*", + "source_scheme": "*", + "source_context_list": "*", + "delivery_type": "*", + "delivery_value": "*", + "redirection": [ + "keep-origin", + "swap-origin", + "downgrade" + ], + "origin": "*", + "subresource": "*", + "expectation": "*" + }, ], "source_context_schema": { "supported_delivery_type": { @@ -361,168 +367,42 @@ ], "sharedworker-classic-data": [], "sharedworker-module-data": [] - }, - "supported_subresource": { - "top": "*", - "iframe": "*", - "iframe-blank": "*", - "srcdoc": "*", - "worker-classic": [ - "xhr", - "fetch", - "websocket" - ], - "worker-module": [ - "xhr", - "fetch", - "websocket" - ], - "worker-classic-data": [ - "xhr", - "fetch", - "websocket" - ], - "worker-module-data": [ - "xhr", - "fetch", - "websocket" - ], - "sharedworker-classic": [ - "xhr", - "fetch", - "websocket" - ], - "sharedworker-module": [ - "xhr", - "fetch", - "websocket" - ], - "sharedworker-classic-data": [ - "xhr", - "fetch", - "websocket" - ], - "sharedworker-module-data": [ - "xhr", - "fetch", - "websocket" - ] } }, "subresource_schema": { "supported_delivery_type": { - "script-tag": [], - "link-css-tag": [], - "xhr": [], - "worker-classic": [], - "worker-module": [], - "worker-import-data": [], - "sharedworker-classic": [], - "sharedworker-module": [], - "sharedworker-import-data": [], - "worklet-animation": [], - "worklet-audio": [], - "worklet-layout": [], - "worklet-paint": [], - "worklet-animation-import-data": [], - "worklet-audio-import-data": [], - "worklet-layout-import-data": [], - "worklet-paint-import-data": [], - "fetch": [], "a-tag": [], + "area-tag": [], + "audio-tag": [], + "beacon": [], + "fetch": [], + "iframe-tag": [], + "img-tag": [], + "link-css-tag": [], + "link-prefetch-tag": [], "object-tag": [], "picture-tag": [], + "script-tag": [], + "sharedworker-classic": [], + "sharedworker-import-data": [], + "sharedworker-module": [], + "video-tag": [], "websocket": [], - "link-prefetch-tag": [], - "beacon": [], - "img-tag": [], - "audio-tag": [], - "video-tag": [] - } - }, - "source_context_list_schema": { - "top": { - "description": "Policy set by the top-level Document", - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "worker-classic-data": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - }, - { - "sourceContextType": "worker-classic-data", - "policyDeliveries": [] - } - ], - "subresourcePolicyDeliveries": [] - }, - "worker-module-data": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - }, - { - "sourceContextType": "worker-module-data", - "policyDeliveries": [] - } - ], - "subresourcePolicyDeliveries": [] - }, - "sharedworker-classic-data": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - }, - { - "sourceContextType": "sharedworker-classic-data", - "policyDeliveries": [] - } - ], - "subresourcePolicyDeliveries": [] - }, - "sharedworker-module-data": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - }, - { - "sourceContextType": "sharedworker-module-data", - "policyDeliveries": [] - } - ], - "subresourcePolicyDeliveries": [] + "worker-classic": [], + "worker-import-data": [], + "worker-module": [], + "worklet-animation": [], + "worklet-animation-import-data": [], + "worklet-audio": [], + "worklet-audio-import-data": [], + "worklet-layout": [], + "worklet-layout-import-data": [], + "worklet-paint": [], + "worklet-paint-import-data": [], + "xhr": [] } }, "test_expansion_schema": { - "expansion": [ - "default", - "override" - ], - "source_scheme": [ - "http", - "https" - ], "delivery_type": [ "http-rp", "meta" @@ -531,57 +411,6 @@ null, "opt-in" ], - "source_context_list": [ - "top", - "worker-classic-data", - "worker-module-data", - "sharedworker-classic-data", - "sharedworker-module-data" - ], - "redirection": [ - "no-redirect", - "keep-scheme", - "swap-scheme" - ], - "origin": [ - "same-https", - "same-http", - "cross-https", - "cross-http", - "same-wss", - "same-ws", - "cross-wss", - "cross-ws" - ], - "subresource": [ - "script-tag", - "link-css-tag", - "xhr", - "worker-classic", - "worker-module", - "worker-import-data", - "sharedworker-classic", - "sharedworker-module", - "sharedworker-import-data", - "worklet-animation", - "worklet-audio", - "worklet-layout", - "worklet-paint", - "worklet-animation-import-data", - "worklet-audio-import-data", - "worklet-layout-import-data", - "worklet-paint-import-data", - "fetch", - "a-tag", - "object-tag", - "picture-tag", - "websocket", - "link-prefetch-tag", - "beacon", - "img-tag", - "audio-tag", - "video-tag" - ], "expectation": [ "allowed", "blocked" diff --git a/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-not-lost-in-chorded-buttons.html b/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-not-lost-in-chorded-buttons.html new file mode 100644 index 00000000000..02a6af0a4b8 --- /dev/null +++ b/tests/wpt/web-platform-tests/pointerevents/pointerevent_pointercapture-not-lost-in-chorded-buttons.html @@ -0,0 +1,225 @@ + + + + Set/Release capture when using chorded buttons + + + + + + + + + + + +

Pointer Events Capture Test - capture should not be lost early

+

+ Test Description: This test checks if setCapture/pointerup functions + works properly. Complete the following actions: +
    +
  1. Put your mouse over the red box +
  2. Press and hold left mouse button. Box will call setPointerCapture +
  3. Press right button and release +
  4. Pointer capture should not be lost +
  5. Press right button again and release +
  6. Pointer capture should not be lost +
  7. Release left mouse button. lostpointercapture is called +
+

+ Test passes if the proper behavior of the events is observed. +
+
+
+
+ + + diff --git a/tests/wpt/web-platform-tests/referrer-policy/generic/spec_json.js b/tests/wpt/web-platform-tests/referrer-policy/generic/spec_json.js index a8b723d5a98..fbe59a2cc9c 100644 --- a/tests/wpt/web-platform-tests/referrer-policy/generic/spec_json.js +++ b/tests/wpt/web-platform-tests/referrer-policy/generic/spec_json.js @@ -1 +1 @@ -var SPEC_JSON = {"selection_pattern": "%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s", "test_file_path_pattern": "gen/%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s.html", "test_description_template": "Referrer Policy: Expects %(expectation)s for %(subresource)s to %(origin)s origin and %(redirection)s redirection from %(source_scheme)s context.", "test_page_title_template": "Referrer-Policy: %(title)s", "specification": [{"name": "unset-referrer-policy", "title": "Referrer Policy is not explicitly defined", "description": "Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policies", "test_expansion": [{"name": "insecure-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "secure-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}]}, {"name": "no-referrer", "title": "Referrer Policy is set to 'no-referrer'", "description": "Check that sub-resource never gets the referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer", "test_expansion": [{"name": "generic", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "omitted"}]}, {"name": "no-referrer-when-downgrade", "title": "Referrer Policy is set to 'no-referrer-when-downgrade'", "description": "Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade", "test_expansion": [{"name": "insecure-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "secure-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}]}, {"name": "origin", "title": "Referrer Policy is set to 'origin'", "description": "Check that all subresources in all casses get only the origin portion of the referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin", "test_expansion": [{"name": "generic", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "origin"}]}, {"name": "same-origin", "title": "Referrer Policy is set to 'same-origin'", "description": "Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin", "test_expansion": [{"name": "same-origin-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-secure-default", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-insecure", "expansion": "override", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "swap-origin", "origin": ["same-http", "same-https"], "subresource": "*", "expectation": "omitted"}, {"name": "cross-origin", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "*", "origin": ["cross-http", "cross-https"], "subresource": "*", "expectation": "omitted"}]}, {"name": "origin-when-cross-origin", "title": "Referrer Policy is set to 'origin-when-cross-origin'", "description": "Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin", "test_expansion": [{"name": "same-origin-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-secure-default", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-upgrade", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "origin"}, {"name": "same-origin-downgrade", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "origin"}, {"name": "same-origin-insecure", "expansion": "override", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "swap-origin", "origin": ["same-http", "same-https"], "subresource": "*", "expectation": "origin"}, {"name": "cross-origin", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": ["cross-http", "cross-https"], "subresource": "*", "expectation": "origin"}]}, {"name": "strict-origin", "title": "Referrer Policy is set to 'strict-origin'", "description": "Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin", "test_expansion": [{"name": "insecure-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "origin"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "origin"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "secure-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "origin"}]}, {"name": "strict-origin-when-cross-origin", "title": "Referrer Policy is set to 'strict-origin-when-cross-origin'", "description": "Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin", "test_expansion": [{"name": "same-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-insecure", "expansion": "override", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "swap-origin", "origin": "same-http", "subresource": "*", "expectation": "origin"}, {"name": "cross-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "cross-http", "subresource": "*", "expectation": "origin"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "origin"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "same-secure", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-secure", "expansion": "override", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "swap-origin", "origin": "same-https", "subresource": "*", "expectation": "origin"}, {"name": "cross-secure", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "cross-https", "subresource": "*", "expectation": "origin"}]}, {"name": "unsafe-url", "title": "Referrer Policy is set to 'unsafe-url'", "description": "Check that all sub-resources get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url", "test_expansion": [{"name": "generic", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "unsafe-url", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "stripped-referrer"}]}], "delivery_key": "referrerPolicy", "excluded_tests": [{"name": "cross-origin-workers", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "redirection": "*", "delivery_type": "*", "delivery_value": "*", "origin": ["cross-http", "cross-https"], "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "expectation": "*"}, {"name": "upgraded-protocol-workers", "expansion": "*", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "expectation": "*"}, {"name": "mixed-content-insecure-subresources", "expansion": "*", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "*"}, {"name": "area-tag", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": "*", "subresource": "area-tag", "expectation": "*"}, {"name": "worker-requests-with-swap-origin-redirect", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "swap-origin", "origin": "*", "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "expectation": "*"}, {"name": "overhead-for-redirection", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-origin", "swap-origin"], "origin": "*", "subresource": ["a-tag", "area-tag"], "expectation": "*"}, {"name": "source-https-unsupported-by-web-platform-tests-runners", "expansion": "*", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "*"}, {"name": "'s delivery_value should be no-referrer", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "rel-noref", "delivery_value": [null, "no-referrer-when-downgrade", "same-origin", "origin", "origin-when-cross-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], "redirection": "*", "origin": "*", "subresource": "*", "expectation": "*"}], "source_context_schema": {"supported_delivery_type": {"top": ["meta", "http-rp"], "iframe": ["meta", "http-rp"], "iframe-blank": ["meta"], "srcdoc": ["meta"], "worker-classic": ["http-rp"], "worker-module": ["http-rp"], "worker-classic-data": [], "worker-module-data": []}, "supported_subresource": {"top": "*", "iframe": "*", "iframe-blank": "*", "srcdoc": "*", "worker-classic": ["xhr", "fetch", "worker-classic", "worker-module"], "worker-module": ["xhr", "fetch", "worker-classic", "worker-module"], "worker-classic-data": ["xhr", "fetch"], "worker-module-data": ["xhr", "fetch"]}}, "subresource_schema": {"supported_delivery_type": {"iframe-tag": ["attr"], "img-tag": ["attr"], "script-tag": ["attr"], "a-tag": ["attr", "rel-noref"], "area-tag": ["attr"], "xhr": [], "fetch": [], "sharedworker-module": [], "worker-module": [], "sharedworker-classic": [], "worker-classic": []}}, "source_context_list_schema": {"top": {"description": "Policy set by the top-level Document", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "req": {"description": "Subresource request's policy should override Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}], "subresourcePolicyDeliveries": ["nonNullPolicy"]}, "srcdoc-inherit": {"description": "srcdoc iframe should inherit parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "srcdoc"}], "subresourcePolicyDeliveries": []}, "srcdoc": {"description": "srcdoc iframe's policy should override parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "srcdoc", "policyDeliveries": ["nonNullPolicy"]}], "subresourcePolicyDeliveries": []}, "iframe": {"description": "external iframe's policy should override parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "iframe", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-classic": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-classic", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-classic-data": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-classic-data", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-module": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-module", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-module-data": {"sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-module-data", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}}, "test_expansion_schema": {"expansion": ["default", "override"], "delivery_type": ["attr", "rel-noref", "http-rp", "meta"], "delivery_value": [null, "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "origin-when-cross-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], "origin": ["same-http", "same-https", "cross-http", "cross-https"], "source_context_list": ["top", "req", "srcdoc-inherit", "srcdoc", "iframe", "worker-classic", "worker-classic-data", "worker-module", "worker-module-data"], "source_scheme": ["http", "https"], "redirection": ["no-redirect", "keep-origin", "swap-origin"], "subresource": ["iframe-tag", "img-tag", "script-tag", "a-tag", "area-tag", "xhr", "worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module", "fetch"], "expectation": ["omitted", "origin", "stripped-referrer"]}}; +var SPEC_JSON = {"selection_pattern": "%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s", "test_file_path_pattern": "gen/%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s.html", "excluded_tests": [{"name": "Workers are same-origin only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "origin": ["cross-https", "cross-http", "cross-http-downgrade", "cross-wss", "cross-ws", "cross-ws-downgrade"], "expectation": "*"}, {"name": "Workers are same-origin only (redirects)", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["swap-origin", "swap-scheme"], "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "origin": "*", "expectation": "*"}, {"name": "Websockets are ws/wss-only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "websocket", "origin": ["same-https", "same-http", "same-http-downgrade", "cross-https", "cross-http", "cross-http-downgrade"], "expectation": "*"}, {"name": "Websockets are no-redirect only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-origin", "swap-origin", "keep-scheme", "swap-scheme", "downgrade"], "subresource": "websocket", "origin": "*", "expectation": "*"}, {"name": "ws/wss are websocket-only", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": ["area-tag", "a-tag", "fetch", "iframe-tag", "img-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "origin": ["same-wss", "same-ws", "same-ws-downgrade", "cross-wss", "cross-ws", "cross-ws-downgrade"], "expectation": "*"}, {"name": "upgraded-protocol-workers", "expansion": "*", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": ["worker-classic", "worker-module", "sharedworker-classic", "sharedworker-module"], "expectation": "*"}, {"name": "mixed-content-insecure-subresources", "expansion": "*", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": ["same-http", "same-http-downgrade", "cross-http", "cross-http-downgrade", "same-ws", "same-ws-downgrade", "cross-ws", "cross-ws-downgrade"], "subresource": "*", "expectation": "*"}, {"name": "overhead-for-redirection", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-origin", "swap-origin"], "origin": "*", "subresource": ["a-tag", "area-tag"], "expectation": "*"}, {"name": "source-https-unsupported-by-web-platform-tests-runners", "expansion": "*", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "*"}, {"name": "'s delivery_value should be no-referrer", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "rel-noref", "delivery_value": [null, "no-referrer-when-downgrade", "same-origin", "origin", "origin-when-cross-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], "redirection": "*", "origin": "*", "subresource": "*", "expectation": "*"}, {"name": "redirections that referrer-policy tests don't care", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": ["keep-scheme", "swap-scheme", "downgrade"], "origin": "*", "subresource": "*", "expectation": "*"}, {"name": "origins that referrer-policy tests don't care", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "origin": ["same-http-downgrade", "cross-http-downgrade", "same-ws-downgrade", "cross-ws-downgrade"], "subresource": "*", "expectation": "*"}, {"name": "subresource values not yet tested", "expansion": "*", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": ["area-tag", "audio-tag", "beacon", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "sharedworker-import-data", "video-tag", "websocket", "worker-import-data", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data"], "origin": "*", "expectation": "*"}, {"name": "source_context_list values not yet tested", "expansion": "*", "source_scheme": "*", "source_context_list": ["iframe-blank-inherit", "sharedworker-classic-data", "sharedworker-module-data", "worker-classic-data", "worker-module-data"], "delivery_type": "*", "delivery_value": "*", "redirection": "*", "subresource": "*", "origin": "*", "expectation": "*"}], "source_context_schema": {"supported_subresource": {"top": "*", "iframe": "*", "iframe-blank": "*", "srcdoc": "*", "worker-classic": ["xhr", "fetch", "websocket", "worker-classic", "worker-module"], "worker-module": ["xhr", "fetch", "websocket", "worker-classic", "worker-module"], "worker-classic-data": ["xhr", "fetch", "websocket"], "worker-module-data": ["xhr", "fetch", "websocket"], "sharedworker-classic": ["xhr", "fetch", "websocket"], "sharedworker-module": ["xhr", "fetch", "websocket"], "sharedworker-classic-data": ["xhr", "fetch", "websocket"], "sharedworker-module-data": ["xhr", "fetch", "websocket"]}, "supported_delivery_type": {"top": ["meta", "http-rp"], "iframe": ["meta", "http-rp"], "iframe-blank": ["meta"], "srcdoc": ["meta"], "worker-classic": ["http-rp"], "worker-module": ["http-rp"], "worker-classic-data": [], "worker-module-data": [], "sharedworker-classic": ["http-rp"], "sharedworker-module": ["http-rp"], "sharedworker-classic-data": [], "sharedworker-module-data": []}}, "source_context_list_schema": {"top": {"description": "Policy set by the top-level Document", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "req": {"description": "Subresource request's policy should override Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}], "subresourcePolicyDeliveries": ["nonNullPolicy"]}, "srcdoc-inherit": {"description": "srcdoc iframe without its own policy should inherit parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "srcdoc"}], "subresourcePolicyDeliveries": []}, "srcdoc": {"description": "srcdoc iframe's policy should override parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "srcdoc", "policyDeliveries": ["nonNullPolicy"]}], "subresourcePolicyDeliveries": []}, "iframe": {"description": "external iframe's policy should override parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "iframe", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "iframe-blank-inherit": {"description": "blank iframe should inherit parent Document's policy", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "iframe-blank"}], "subresourcePolicyDeliveries": []}, "worker-classic": {"description": "dedicated workers shouldn't inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-classic", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-classic-data": {"description": "data: dedicated workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "worker-classic-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "worker-module": {"description": "dedicated workers shouldn't inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["anotherPolicy"]}, {"sourceContextType": "worker-module", "policyDeliveries": ["policy"]}], "subresourcePolicyDeliveries": []}, "worker-module-data": {"description": "data: dedicated workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "worker-module-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "sharedworker-classic-data": {"description": "data: shared workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "sharedworker-classic-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}, "sharedworker-module-data": {"description": "data: shared workers should inherit its parent's policy.", "sourceContextList": [{"sourceContextType": "top", "policyDeliveries": ["policy"]}, {"sourceContextType": "sharedworker-module-data", "policyDeliveries": []}], "subresourcePolicyDeliveries": []}}, "test_expansion_schema": {"expansion": ["default", "override"], "source_scheme": ["http", "https"], "source_context_list": ["top", "req", "srcdoc-inherit", "srcdoc", "iframe", "iframe-blank-inherit", "worker-classic", "worker-classic-data", "worker-module", "worker-module-data", "sharedworker-classic-data", "sharedworker-module-data"], "redirection": ["no-redirect", "keep-origin", "swap-origin", "keep-scheme", "swap-scheme", "downgrade"], "origin": ["same-https", "same-http", "same-http-downgrade", "cross-https", "cross-http", "cross-http-downgrade", "same-wss", "same-ws", "same-ws-downgrade", "cross-wss", "cross-ws", "cross-ws-downgrade"], "subresource": ["a-tag", "area-tag", "audio-tag", "beacon", "fetch", "iframe-tag", "img-tag", "link-css-tag", "link-prefetch-tag", "object-tag", "picture-tag", "script-tag", "sharedworker-classic", "sharedworker-import-data", "sharedworker-module", "video-tag", "websocket", "worker-classic", "worker-import-data", "worker-module", "worklet-animation", "worklet-animation-import-data", "worklet-audio", "worklet-audio-import-data", "worklet-layout", "worklet-layout-import-data", "worklet-paint", "worklet-paint-import-data", "xhr"], "delivery_type": ["attr", "rel-noref", "http-rp", "meta"], "delivery_value": [null, "no-referrer", "no-referrer-when-downgrade", "same-origin", "origin", "origin-when-cross-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"], "expectation": ["omitted", "origin", "stripped-referrer"]}, "test_description_template": "Referrer Policy: Expects %(expectation)s for %(subresource)s to %(origin)s origin and %(redirection)s redirection from %(source_scheme)s context.", "test_page_title_template": "Referrer-Policy: %(title)s", "specification": [{"name": "unset-referrer-policy", "title": "Referrer Policy is not explicitly defined", "description": "Check that referrer URL follows no-referrer-when-downgrade policy when no explicit Referrer Policy is set.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policies", "test_expansion": [{"name": "insecure-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "secure-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": null, "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}]}, {"name": "no-referrer", "title": "Referrer Policy is set to 'no-referrer'", "description": "Check that sub-resource never gets the referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer", "test_expansion": [{"name": "generic", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "omitted"}]}, {"name": "no-referrer-when-downgrade", "title": "Referrer Policy is set to 'no-referrer-when-downgrade'", "description": "Check that non a priori insecure subresource gets the full Referrer URL. A priori insecure subresource gets no referrer information.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-no-referrer-when-downgrade", "test_expansion": [{"name": "insecure-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "secure-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "no-referrer-when-downgrade", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "stripped-referrer"}]}, {"name": "origin", "title": "Referrer Policy is set to 'origin'", "description": "Check that all subresources in all casses get only the origin portion of the referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin", "test_expansion": [{"name": "generic", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "origin"}]}, {"name": "same-origin", "title": "Referrer Policy is set to 'same-origin'", "description": "Check that cross-origin subresources get no referrer information and same-origin get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-same-origin", "test_expansion": [{"name": "same-origin-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-secure-default", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-insecure", "expansion": "override", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "swap-origin", "origin": ["same-http", "same-https"], "subresource": "*", "expectation": "omitted"}, {"name": "cross-origin", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "same-origin", "redirection": "*", "origin": ["cross-http", "cross-https"], "subresource": "*", "expectation": "omitted"}]}, {"name": "origin-when-cross-origin", "title": "Referrer Policy is set to 'origin-when-cross-origin'", "description": "Check that cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-origin-when-cross-origin", "test_expansion": [{"name": "same-origin-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-secure-default", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-origin-upgrade", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "origin"}, {"name": "same-origin-downgrade", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "origin"}, {"name": "same-origin-insecure", "expansion": "override", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "swap-origin", "origin": ["same-http", "same-https"], "subresource": "*", "expectation": "origin"}, {"name": "cross-origin", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "origin-when-cross-origin", "redirection": "*", "origin": ["cross-http", "cross-https"], "subresource": "*", "expectation": "origin"}]}, {"name": "strict-origin", "title": "Referrer Policy is set to 'strict-origin'", "description": "Check that non a priori insecure subresource gets only the origin portion of the referrer URL. A priori insecure subresource gets no referrer information.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin", "test_expansion": [{"name": "insecure-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "origin"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "origin"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "secure-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "origin"}]}, {"name": "strict-origin-when-cross-origin", "title": "Referrer Policy is set to 'strict-origin-when-cross-origin'", "description": "Check that a priori insecure subresource gets no referrer information. Otherwise, cross-origin subresources get the origin portion of the referrer URL and same-origin get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-strict-origin-when-cross-origin", "test_expansion": [{"name": "same-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "same-http", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-insecure", "expansion": "override", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "swap-origin", "origin": "same-http", "subresource": "*", "expectation": "origin"}, {"name": "cross-insecure", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "cross-http", "subresource": "*", "expectation": "origin"}, {"name": "upgrade-protocol", "expansion": "default", "source_scheme": "http", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": ["same-https", "cross-https"], "subresource": "*", "expectation": "origin"}, {"name": "downgrade-protocol", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": ["same-http", "cross-http"], "subresource": "*", "expectation": "omitted"}, {"name": "same-secure", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "same-https", "subresource": "*", "expectation": "stripped-referrer"}, {"name": "same-secure", "expansion": "override", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "swap-origin", "origin": "same-https", "subresource": "*", "expectation": "origin"}, {"name": "cross-secure", "expansion": "default", "source_scheme": "https", "source_context_list": "*", "delivery_type": "*", "delivery_value": "strict-origin-when-cross-origin", "redirection": "*", "origin": "cross-https", "subresource": "*", "expectation": "origin"}]}, {"name": "unsafe-url", "title": "Referrer Policy is set to 'unsafe-url'", "description": "Check that all sub-resources get the stripped referrer URL.", "specification_url": "https://w3c.github.io/webappsec-referrer-policy/#referrer-policy-unsafe-url", "test_expansion": [{"name": "generic", "expansion": "default", "source_scheme": "*", "source_context_list": "*", "delivery_type": "*", "delivery_value": "unsafe-url", "redirection": "*", "origin": "*", "subresource": "*", "expectation": "stripped-referrer"}]}], "delivery_key": "referrerPolicy", "subresource_schema": {"supported_delivery_type": {"a-tag": ["attr", "rel-noref"], "area-tag": ["attr"], "audio-tag": [], "beacon": [], "fetch": [], "iframe-tag": ["attr"], "img-tag": ["attr"], "link-css-tag": [], "link-prefetch-tag": [], "object-tag": [], "picture-tag": [], "script-tag": ["attr"], "sharedworker-classic": [], "sharedworker-import-data": [], "sharedworker-module": [], "video-tag": [], "websocket": [], "worker-classic": [], "worker-import-data": [], "worker-module": [], "worklet-animation": [], "worklet-animation-import-data": [], "worklet-audio": [], "worklet-audio-import-data": [], "worklet-layout": [], "worklet-layout-import-data": [], "worklet-paint": [], "worklet-paint-import-data": [], "xhr": []}}}; diff --git a/tests/wpt/web-platform-tests/referrer-policy/spec.src.json b/tests/wpt/web-platform-tests/referrer-policy/spec.src.json index d32ee80a8d2..9063428647a 100644 --- a/tests/wpt/web-platform-tests/referrer-policy/spec.src.json +++ b/tests/wpt/web-platform-tests/referrer-policy/spec.src.json @@ -1,6 +1,4 @@ { - "selection_pattern": "%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s", - "test_file_path_pattern": "gen/%(source_context_list)s.%(delivery_type)s/%(delivery_value)s/%(subresource)s/%(origin)s.%(redirection)s.%(source_scheme)s.html", "test_description_template": "Referrer Policy: Expects %(expectation)s for %(subresource)s to %(origin)s origin and %(redirection)s redirection from %(source_scheme)s context.", "test_page_title_template": "Referrer-Policy: %(title)s", "specification": [ @@ -529,26 +527,6 @@ ], "delivery_key": "referrerPolicy", "excluded_tests": [ - { - "name": "cross-origin-workers", - "expansion": "*", - "source_scheme": "*", - "source_context_list": "*", - "redirection": "*", - "delivery_type": "*", - "delivery_value": "*", - "origin": [ - "cross-http", - "cross-https" - ], - "subresource": [ - "worker-classic", - "worker-module", - "sharedworker-classic", - "sharedworker-module" - ], - "expectation": "*" - }, { "name": "upgraded-protocol-workers", "expansion": "*", @@ -579,40 +557,17 @@ "redirection": "*", "origin": [ "same-http", - "cross-http" + "same-http-downgrade", + "cross-http", + "cross-http-downgrade", + "same-ws", + "same-ws-downgrade", + "cross-ws", + "cross-ws-downgrade" ], "subresource": "*", "expectation": "*" }, - { - "name": "area-tag", - "expansion": "*", - "source_scheme": "*", - "source_context_list": "*", - "delivery_type": "*", - "delivery_value": "*", - "redirection": "*", - "origin": "*", - "subresource": "area-tag", - "expectation": "*" - }, - { - "name": "worker-requests-with-swap-origin-redirect", - "expansion": "*", - "source_scheme": "*", - "source_context_list": "*", - "delivery_type": "*", - "delivery_value": "*", - "redirection": "swap-origin", - "origin": "*", - "subresource": [ - "worker-classic", - "worker-module", - "sharedworker-classic", - "sharedworker-module" - ], - "expectation": "*" - }, { "name": "overhead-for-redirection", "expansion": "*", @@ -663,7 +618,90 @@ "origin": "*", "subresource": "*", "expectation": "*" - } + }, + { + "name": "redirections that referrer-policy tests don't care", + "expansion": "*", + "source_scheme": "*", + "source_context_list": "*", + "delivery_type": "*", + "delivery_value": "*", + "redirection": [ + "keep-scheme", + "swap-scheme", + "downgrade" + ], + "origin": "*", + "subresource": "*", + "expectation": "*" + }, + { + "name": "origins that referrer-policy tests don't care", + "expansion": "*", + "source_scheme": "*", + "source_context_list": "*", + "delivery_type": "*", + "delivery_value": "*", + "redirection": "*", + "origin": [ + "same-http-downgrade", + "cross-http-downgrade", + "same-ws-downgrade", + "cross-ws-downgrade" + ], + "subresource": "*", + "expectation": "*" + }, + { + "name": "subresource values not yet tested", + "expansion": "*", + "source_scheme": "*", + "source_context_list": "*", + "delivery_type": "*", + "delivery_value": "*", + "redirection": "*", + "subresource": [ + "area-tag", + "audio-tag", + "beacon", + "link-css-tag", + "link-prefetch-tag", + "object-tag", + "picture-tag", + "sharedworker-import-data", + "video-tag", + "websocket", + "worker-import-data", + "worklet-animation", + "worklet-animation-import-data", + "worklet-audio", + "worklet-audio-import-data", + "worklet-layout", + "worklet-layout-import-data", + "worklet-paint", + "worklet-paint-import-data" + ], + "origin": "*", + "expectation": "*" + }, + { + "name": "source_context_list values not yet tested", + "expansion": "*", + "source_scheme": "*", + "source_context_list": [ + "iframe-blank-inherit", + "sharedworker-classic-data", + "sharedworker-module-data", + "worker-classic-data", + "worker-module-data" + ], + "delivery_type": "*", + "delivery_value": "*", + "redirection": "*", + "subresource": "*", + "origin": "*", + "expectation": "*" + }, ], "source_context_schema": { "supported_delivery_type": { @@ -688,46 +726,22 @@ "http-rp" ], "worker-classic-data": [], - "worker-module-data": [] - }, - "supported_subresource": { - "top": "*", - "iframe": "*", - "iframe-blank": "*", - "srcdoc": "*", - "worker-classic": [ - "xhr", - "fetch", - "worker-classic", - "worker-module" + "worker-module-data": [], + "sharedworker-classic": [ + "http-rp" ], - "worker-module": [ - "xhr", - "fetch", - "worker-classic", - "worker-module" + "sharedworker-module": [ + "http-rp" ], - "worker-classic-data": [ - "xhr", - "fetch" - ], - "worker-module-data": [ - "xhr", - "fetch" - ] + "sharedworker-classic-data": [], + "sharedworker-module-data": [] } }, "subresource_schema": { "supported_delivery_type": { - "iframe-tag": [ - "attr" - ], - "img-tag": [ - "attr" - ], - "script-tag": [ - "attr" - ], + // List of elements that support "attr" delivery type can be followed + // from the cross reference of: + // https://html.spec.whatwg.org/C/#referrer-policy-attribute "a-tag": [ "attr", "rel-noref" @@ -735,166 +749,54 @@ "area-tag": [ "attr" ], - "xhr": [], + "audio-tag": [], + "beacon": [], + // Fetch API supports `init["referrerPolicy"]` in `Request`: + // https://fetch.spec.whatwg.org/#dom-request. + // TODO(https://github.com/web-platform-tests/wpt/issues/21815): + // Add support for this. Currently `common.sub.js` doesn't support this. "fetch": [], - "sharedworker-module": [], - "worker-module": [], + "iframe-tag": [ + "attr" + ], + "img-tag": [ + "attr" + ], + // TODO(https://github.com/web-platform-tests/wpt/issues/21815): + // Support "attr" in the following ``-related subresources. + // The current referrrer-policy test helper doesn't support + // checking referrer results via elements. + "link-css-tag": [], + "link-prefetch-tag": [], + "object-tag": [], + // `` supports referrerpolicy attribute, + // so `` inside `` also supports the attribute. + // TODO(https://github.com/web-platform-tests/wpt/issues/21815): + // Support this. + "picture-tag": [], + "script-tag": [ + "attr" + ], "sharedworker-classic": [], - "worker-classic": [] - } - }, - "source_context_list_schema": { - "top": { - "description": "Policy set by the top-level Document", - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "req": { - "description": "Subresource request's policy should override Document's policy", - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - } - ], - "subresourcePolicyDeliveries": [ - "nonNullPolicy" - ] - }, - "srcdoc-inherit": { - "description": "srcdoc iframe should inherit parent Document's policy", - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "policy" - ] - }, - { - "sourceContextType": "srcdoc" - } - ], - "subresourcePolicyDeliveries": [] - }, - "srcdoc": { - "description": "srcdoc iframe's policy should override parent Document's policy", - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - }, - { - "sourceContextType": "srcdoc", - "policyDeliveries": [ - "nonNullPolicy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "iframe": { - "description": "external iframe's policy should override parent Document's policy", - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - }, - { - "sourceContextType": "iframe", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "worker-classic": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - }, - { - "sourceContextType": "worker-classic", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "worker-classic-data": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - }, - { - "sourceContextType": "worker-classic-data", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "worker-module": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - }, - { - "sourceContextType": "worker-module", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] - }, - "worker-module-data": { - "sourceContextList": [ - { - "sourceContextType": "top", - "policyDeliveries": [ - "anotherPolicy" - ] - }, - { - "sourceContextType": "worker-module-data", - "policyDeliveries": [ - "policy" - ] - } - ], - "subresourcePolicyDeliveries": [] + "sharedworker-import-data": [], + "sharedworker-module": [], + "video-tag": [], + "websocket": [], + "worker-classic": [], + "worker-import-data": [], + "worker-module": [], + "worklet-animation": [], + "worklet-animation-import-data": [], + "worklet-audio": [], + "worklet-audio-import-data": [], + "worklet-layout": [], + "worklet-layout-import-data": [], + "worklet-paint": [], + "worklet-paint-import-data": [], + "xhr": [] } }, "test_expansion_schema": { - "expansion": [ - "default", - "override" - ], "delivery_type": [ "attr", "rel-noref", @@ -912,45 +814,6 @@ "strict-origin-when-cross-origin", "unsafe-url" ], - "origin": [ - "same-http", - "same-https", - "cross-http", - "cross-https" - ], - "source_context_list": [ - "top", - "req", - "srcdoc-inherit", - "srcdoc", - "iframe", - "worker-classic", - "worker-classic-data", - "worker-module", - "worker-module-data" - ], - "source_scheme": [ - "http", - "https" - ], - "redirection": [ - "no-redirect", - "keep-origin", - "swap-origin" - ], - "subresource": [ - "iframe-tag", - "img-tag", - "script-tag", - "a-tag", - "area-tag", - "xhr", - "worker-classic", - "worker-module", - "sharedworker-classic", - "sharedworker-module", - "fetch" - ], "expectation": [ "omitted", "origin", diff --git a/tests/wpt/web-platform-tests/shape-detection/idlharness.https.any.js b/tests/wpt/web-platform-tests/shape-detection/idlharness.https.any.js index e7f2cc8ff86..da60edbee63 100644 --- a/tests/wpt/web-platform-tests/shape-detection/idlharness.https.any.js +++ b/tests/wpt/web-platform-tests/shape-detection/idlharness.https.any.js @@ -1,7 +1,6 @@ // META: global=window,worker // META: script=/resources/WebIDLParser.js // META: script=/resources/idlharness.js -// META: script=/shape-detection/resources/shapedetection-helpers.js // See: https://wicg.github.io/shape-detection-api/ @@ -12,53 +11,8 @@ idl_test( ['dom', 'geometry'], async idl_array => { idl_array.add_objects({ - FaceDetector: ['faceDetector'], - DetectedFace: ['detectedFace'], - BarcodeDetector: ['barcodeDetector'], - DetectedBarcode: ['detectedBarcode'] + FaceDetector: ['new FaceDetector()'], + BarcodeDetector: ['new BarcodeDetector()'], }); - - let faceDetectionTest; - try { - faceDetectionTest = - await initialize_detection_tests("FaceDetectionTest"); - const img = createTestImage(); - const theImageBitmap = await createImageBitmap(img); - - self.faceDetector = new FaceDetector(); - const faceDetectionResult = await faceDetector.detect(theImageBitmap); - self.detectedFace = faceDetectionResult[0]; - } catch (e) { - // Surfaced in idlharness.js's test_object. - } finally { - faceDetectionTest && faceDetectionTest.reset(); - } - - let barcodeDetectionTest; - try { - barcodeDetectionTest = - await initialize_detection_tests("BarcodeDetectionTest"); - const img = createTestImage(); - const theImageBitmap = await createImageBitmap(img); - - self.barcodeDetector = new BarcodeDetector(); - const barcodeDetectionResult = - await barcodeDetector.detect(theImageBitmap); - self.detectedBarcode = barcodeDetectionResult[0]; - } catch (e) { - // Surface in idlharness.js's test_object. - } finally { - barcodeDetectionTest && barcodeDetectionTest.reset(); - } } ); - -function createTestImage() { - const image = new OffscreenCanvas(100, 50); - const imgctx = image.getContext('2d'); - imgctx.fillStyle = "#F00"; - imgctx.fillRect(0, 0, 2, 2); - imgctx.fillStyle = "#0F0"; - imgctx.fillRect(0, 0, 1, 1); - return image; -} \ No newline at end of file diff --git a/tests/wpt/web-platform-tests/tools/ci/tc/tests/test_valid.py b/tests/wpt/web-platform-tests/tools/ci/tc/tests/test_valid.py index 4573541bf58..aa1ce20cd6d 100644 --- a/tests/wpt/web-platform-tests/tools/ci/tc/tests/test_valid.py +++ b/tests/wpt/web-platform-tests/tools/ci/tc/tests/test_valid.py @@ -6,7 +6,6 @@ import jsone import mock import pytest import requests -import sys import yaml from jsonschema import validate @@ -20,9 +19,6 @@ def data_path(filename): return os.path.join(here, "..", "testdata", filename) -@pytest.mark.xfail(sys.version_info.major == 2, - reason="taskcluster library has an encoding bug " - "https://github.com/taskcluster/json-e/issues/338") def test_verify_taskcluster_yml(): """Verify that the json-e in the .taskcluster.yml is valid""" with open(os.path.join(root, ".taskcluster.yml"), encoding="utf8") as f: diff --git a/tests/wpt/web-platform-tests/tools/wptrunner/requirements.txt b/tests/wpt/web-platform-tests/tools/wptrunner/requirements.txt index 99898d1736d..6cd14095d9b 100644 --- a/tests/wpt/web-platform-tests/tools/wptrunner/requirements.txt +++ b/tests/wpt/web-platform-tests/tools/wptrunner/requirements.txt @@ -1,6 +1,6 @@ html5lib==1.0.1 mozinfo==1.1.0 -mozlog==5.0 +mozlog==6.0 mozdebug==0.2 # Pillow 7 requires Python 3 pillow==6.2.2 # pyup: <7.0 diff --git a/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt b/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt index f2d02e0b8a3..ae729408104 100644 --- a/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt +++ b/tests/wpt/web-platform-tests/tools/wptrunner/requirements_firefox.txt @@ -1,5 +1,5 @@ marionette_driver==3.0.0 -mozcrash==1.2.0 +mozcrash==2.0.0 mozdownload==1.26.0 mozinstall==2.0.0 mozleak==0.2 diff --git a/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicy-getPolicyNames.tentative.html b/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicy-getPolicyNames.tentative.html deleted file mode 100644 index d1ae9e45c06..00000000000 --- a/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicy-getPolicyNames.tentative.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - diff --git a/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.tentative.html b/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.tentative.html index f049484f119..9fdafb2ccf0 100644 --- a/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.tentative.html +++ b/tests/wpt/web-platform-tests/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.tentative.html @@ -20,14 +20,6 @@ }); }, "duplicate policy name attempt throws"); - // Retrieve policy names tests - test(t => { - let policy = trustedTypes.createPolicy('SomeOtherName', {} ); - let names = trustedTypes.getPolicyNames(); - assert_true(names.includes('SomeName')); - assert_true(names.includes('SomeOtherName')); - }, "Retrieving policy names"); - // Check error messages. test(t => { try { diff --git a/tests/wpt/web-platform-tests/trusted-types/csp-block-eval.tentative.html b/tests/wpt/web-platform-tests/trusted-types/csp-block-eval.tentative.html index 7902ca4040f..e3911bf9e6a 100644 --- a/tests/wpt/web-platform-tests/trusted-types/csp-block-eval.tentative.html +++ b/tests/wpt/web-platform-tests/trusted-types/csp-block-eval.tentative.html @@ -6,7 +6,7 @@ - + - +