From abcd4b654fd7a7adf493617bf6fe3b9ace15f6bb Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Thu, 21 Apr 2016 11:33:07 +0200 Subject: [PATCH] Update web-platform-tests to revision 0a518aaff73532a26e175789f7e75fa99593ac64 --- .../EventObject.after.dispatchEvent.html.ini | 5 - .../EventObject.after.dispatchEvent.html.ini | 5 - .../FileAPI/blob/Blob-constructor.html.ini | 7 +- tests/wpt/metadata/MANIFEST.json | 201 +++++++++- .../cssom-view/elementScroll.html.ini | 1 + ...ith-cross-frame-event-listeners-1.html.ini | 6 + ...ith-cross-frame-event-listeners-2.html.ini | 6 + ...ith-cross-frame-event-listeners-3.html.ini | 6 + ...ith-cross-frame-event-listeners-4.html.ini | 6 + tests/wpt/metadata/mozilla-sync | 2 +- .../websockets/constructor/018.html.ini | 5 + tests/wpt/mozilla/meta/MANIFEST.json | 1 + .../EventObject.after.dispatchEvent.html | 44 --- .../EventObject.after.dispatchEvent.html | 45 --- .../FileAPI/blob/Blob-constructor.html | 14 +- ...bkit-text-fill-color-property-002-ref.html | 25 ++ .../webkit-text-fill-color-property-002.html | 29 ++ ...bkit-text-fill-color-property-003-ref.html | 28 ++ .../webkit-text-fill-color-property-003.html | 35 ++ ...bkit-text-fill-color-property-004-ref.html | 34 ++ .../webkit-text-fill-color-property-004.html | 38 ++ ...bkit-text-fill-color-property-005-ref.html | 13 + .../webkit-text-fill-color-property-005.html | 17 + ...bkit-text-fill-color-property-006-ref.html | 24 ++ .../webkit-text-fill-color-property-006.html | 28 ++ .../form-action-src-allowed.sub.html | 2 +- .../form-action-src-blocked.sub.html | 2 +- .../form-action-src-get-allowed.sub.html | 3 +- .../form-action-src-get-blocked.sub.html | 3 +- .../form-action-src-redirect-blocked.sub.html | 2 +- .../meta-outside-head.sub.html | 8 +- .../blink-contrib-2/metaHelper.js | 5 + .../plugintypes-notype-data.sub.html | 4 +- .../scripthash-unicode-normalization.sub.html | 18 +- .../scriptnonce-basic-blocked.sub.html | 39 +- .../stylehash-allowed.sub.html | 2 +- .../stylehash-allowed.sub.html.sub.headers | 2 +- .../connect-src-beacon-allowed.sub.html | 25 +- .../connect-src-beacon-blocked.sub.html | 24 +- ...ct-src-beacon-redirect-to-blocked.sub.html | 19 +- .../resources/worker-importscripts.js | 2 +- ...shared-worker-connect-src-allowed.sub.html | 12 +- ...shared-worker-connect-src-blocked.sub.html | 13 +- .../worker-importscripts-blocked.sub.html | 2 +- .../child-src-worker-blocked.sub.html | 4 + .../media-src/media-src-7_3_2.html | 9 +- .../media-src/media-src-redir-bug.sub.html | 4 +- .../support/alertAssert.sub.js | 14 +- .../support/logTest.sub.js | 10 + ...Event-defaultPrevented-after-dispatch.html | 26 ++ tests/wpt/web-platform-tests/html/OWNERS | 1 + .../embed-ignored-in-media-element.html | 22 ++ ...or-with-cross-frame-event-listeners-1.html | 33 ++ ...or-with-cross-frame-event-listeners-2.html | 33 ++ ...or-with-cross-frame-event-listeners-3.html | 33 ++ ...or-with-cross-frame-event-listeners-4.html | 33 ++ .../web-platform-tests/media-source/OWNERS | 1 + .../resource-timing/test_resource_timing.js | 7 + .../serviceworker/cache-add.https.html | 2 +- .../serviceworker/cache-delete.https.html | 2 +- .../serviceworker/cache-match.https.html | 2 +- .../serviceworker/cache-matchAll.https.html | 2 +- .../serviceworker/cache-put.https.html | 2 +- .../cache-storage-keys.https.html | 2 +- .../cache-storage-match.https.html | 2 +- .../serviceworker/cache-storage.https.html | 2 +- .../serviceworker/credentials.html | 2 +- .../service-worker/fetch-event.https.html | 72 +++- .../resources/fetch-event-test-worker.js | 17 + .../service-workers/resources/test-helpers.js | 222 ----------- .../tools/manifest/manifest.py | 70 +++- .../tools/manifest/tests/__init__.py | 0 .../tools/manifest/tests/test_manifest.py | 55 +++ .../focus-events/focus-manual.html | 81 ++++ .../focus-events/legacy-manual.html | 84 ++++ .../animation-effect-timing/easing.html | 84 ++++ .../animation-effect-timing/fill.html | 25 ++ .../animation-types/discrete-animation.html | 136 +++++++ .../animation-types/not-animatable.html | 120 ++++++ .../keyframes/effect-value-context.html | 86 ++++ .../web-animations/animation/finished.html | 371 ++++++++++++++++++ .../web-animations/animation/id.html | 24 ++ .../web-animations/animation/oncancel.html | 34 ++ .../web-animations/animation/onfinish.html | 122 ++++++ .../web-animations/animation/pause.html | 99 +++++ .../web-animations/animation/ready.html | 97 +++++ .../web-animations/animation/reverse.html | 150 +++++++ .../keyframe-effect/constructor.html | 365 ++++++++++------- .../keyframe-effect/effect-easing.html | 51 +-- .../keyframe-effect/keyframe-handling.html | 40 ++ .../resources/effect-easing-tests.js | 42 ++ .../websockets/constructor/018.html | 4 +- 92 files changed, 2869 insertions(+), 642 deletions(-) delete mode 100644 tests/wpt/metadata/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html.ini delete mode 100644 tests/wpt/metadata/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html.ini create mode 100644 tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html.ini create mode 100644 tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html.ini create mode 100644 tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html.ini create mode 100644 tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html.ini create mode 100644 tests/wpt/metadata/websockets/constructor/018.html.ini delete mode 100644 tests/wpt/web-platform-tests/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html delete mode 100644 tests/wpt/web-platform-tests/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002-ref.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003-ref.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004-ref.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005-ref.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006-ref.html create mode 100644 tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006.html create mode 100644 tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/metaHelper.js create mode 100644 tests/wpt/web-platform-tests/dom/events/Event-defaultPrevented-after-dispatch.html create mode 100644 tests/wpt/web-platform-tests/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html create mode 100644 tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html create mode 100644 tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html create mode 100644 tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html create mode 100644 tests/wpt/web-platform-tests/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html delete mode 100644 tests/wpt/web-platform-tests/service-workers/service-workers/resources/test-helpers.js create mode 100644 tests/wpt/web-platform-tests/tools/manifest/tests/__init__.py create mode 100644 tests/wpt/web-platform-tests/tools/manifest/tests/test_manifest.py create mode 100644 tests/wpt/web-platform-tests/uievents/order-of-events/focus-events/focus-manual.html create mode 100644 tests/wpt/web-platform-tests/uievents/order-of-events/focus-events/legacy-manual.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation-effect-timing/easing.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation-effect-timing/fill.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/discrete-animation.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation-model/animation-types/not-animatable.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation-model/keyframes/effect-value-context.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/finished.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/id.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/oncancel.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/onfinish.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/pause.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/ready.html create mode 100644 tests/wpt/web-platform-tests/web-animations/animation/reverse.html create mode 100644 tests/wpt/web-platform-tests/web-animations/resources/effect-easing-tests.js diff --git a/tests/wpt/metadata/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html.ini b/tests/wpt/metadata/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html.ini deleted file mode 100644 index 6f9a31a9658..00000000000 --- a/tests/wpt/metadata/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[EventObject.after.dispatchEvent.html] - type: testharness - [Test Description: As the final step of the event dispatch, the implementation must reset the event object's default-action-prevention state. ] - expected: FAIL - diff --git a/tests/wpt/metadata/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html.ini b/tests/wpt/metadata/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html.ini deleted file mode 100644 index 6f9a31a9658..00000000000 --- a/tests/wpt/metadata/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html.ini +++ /dev/null @@ -1,5 +0,0 @@ -[EventObject.after.dispatchEvent.html] - type: testharness - [Test Description: As the final step of the event dispatch, the implementation must reset the event object's default-action-prevention state. ] - expected: FAIL - diff --git a/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini b/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini index 9d44c1daccf..5f4c6aaa244 100644 --- a/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini +++ b/tests/wpt/metadata/FileAPI/blob/Blob-constructor.html.ini @@ -42,6 +42,11 @@ [Array with mixed types] expected: FAIL - [no-argument Blob constructor without 'new'] + [Blob constructor with no arguments, without 'new'] + bug: https://github.com/servo/servo/issues/10744 + expected: FAIL + + [Blob constructor with undefined as first argument] + bug: https://github.com/servo/servo/issues/10779 expected: FAIL diff --git a/tests/wpt/metadata/MANIFEST.json b/tests/wpt/metadata/MANIFEST.json index 1f4b82f38c4..93aaaca93ef 100644 --- a/tests/wpt/metadata/MANIFEST.json +++ b/tests/wpt/metadata/MANIFEST.json @@ -3225,6 +3225,14 @@ "path": "touch-events/single-touch-manual.html", "url": "/touch-events/single-touch-manual.html" }, + { + "path": "uievents/order-of-events/focus-events/focus-manual.html", + "url": "/uievents/order-of-events/focus-events/focus-manual.html" + }, + { + "path": "uievents/order-of-events/focus-events/legacy-manual.html", + "url": "/uievents/order-of-events/focus-events/legacy-manual.html" + }, { "path": "uievents/order-of-events/mouse-events/click-on-body-manual.html", "url": "/uievents/order-of-events/mouse-events/click-on-body-manual.html" @@ -3695,6 +3703,56 @@ ], "url": "/compat/webkit-text-fill-color-property-001d.html" }, + { + "path": "compat/webkit-text-fill-color-property-002.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-002-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-002.html" + }, + { + "path": "compat/webkit-text-fill-color-property-003.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-003-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-003.html" + }, + { + "path": "compat/webkit-text-fill-color-property-004.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-004-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-004.html" + }, + { + "path": "compat/webkit-text-fill-color-property-005.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-005-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-005.html" + }, + { + "path": "compat/webkit-text-fill-color-property-006.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-006-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-006.html" + }, { "path": "custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag.html", "references": [ @@ -11067,10 +11125,6 @@ "path": "DOMEvents/tests/approved/EventListener.eventHandler.html", "url": "/DOMEvents/tests/approved/EventListener.eventHandler.html" }, - { - "path": "DOMEvents/tests/approved/EventObject.after.dispatchEvent.html", - "url": "/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html" - }, { "path": "DOMEvents/tests/approved/EventObject.multiple.dispatchEvent.html", "url": "/DOMEvents/tests/approved/EventObject.multiple.dispatchEvent.html" @@ -11107,10 +11161,6 @@ "path": "DOMEvents/tests/submissions/Microsoft/converted/EventListener.eventHandler.html", "url": "/DOMEvents/tests/submissions/Microsoft/converted/EventListener.eventHandler.html" }, - { - "path": "DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html", - "url": "/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html" - }, { "path": "DOMEvents/tests/submissions/Microsoft/converted/EventObject.multiple.dispatchEvent.html", "url": "/DOMEvents/tests/submissions/Microsoft/converted/EventObject.multiple.dispatchEvent.html" @@ -14047,6 +14097,10 @@ "path": "dom/events/Event-constructors.html", "url": "/dom/events/Event-constructors.html" }, + { + "path": "dom/events/Event-defaultPrevented-after-dispatch.html", + "url": "/dom/events/Event-defaultPrevented-after-dispatch.html" + }, { "path": "dom/events/Event-defaultPrevented.html", "url": "/dom/events/Event-defaultPrevented.html" @@ -18731,6 +18785,10 @@ "path": "html/semantics/embedded-content/the-embed-element/embed-document.html", "url": "/html/semantics/embedded-content/the-embed-element/embed-document.html" }, + { + "path": "html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html", + "url": "/html/semantics/embedded-content/the-embed-element/embed-ignored-in-media-element.html" + }, { "path": "html/semantics/embedded-content/the-iframe-element/iframe_javascript_url_01.htm", "url": "/html/semantics/embedded-content/the-iframe-element/iframe_javascript_url_01.htm" @@ -19991,6 +20049,22 @@ "path": "html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html", "url": "/html/webappapis/scripting/processing-model-2/window-onerror-runtime-error.html" }, + { + "path": "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html", + "url": "/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html" + }, + { + "path": "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html", + "url": "/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html" + }, + { + "path": "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html", + "url": "/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html" + }, + { + "path": "html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html", + "url": "/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html" + }, { "path": "html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html", "url": "/html/webappapis/system-state-and-capabilities/the-navigator-object/NavigatorID.html" @@ -28719,10 +28793,18 @@ "path": "web-animations/animation-effect-timing/duration.html", "url": "/web-animations/animation-effect-timing/duration.html" }, + { + "path": "web-animations/animation-effect-timing/easing.html", + "url": "/web-animations/animation-effect-timing/easing.html" + }, { "path": "web-animations/animation-effect-timing/endDelay.html", "url": "/web-animations/animation-effect-timing/endDelay.html" }, + { + "path": "web-animations/animation-effect-timing/fill.html", + "url": "/web-animations/animation-effect-timing/fill.html" + }, { "path": "web-animations/animation-effect-timing/getAnimations.html", "url": "/web-animations/animation-effect-timing/getAnimations.html" @@ -28739,6 +28821,18 @@ "path": "web-animations/animation-effect-timing/iterations.html", "url": "/web-animations/animation-effect-timing/iterations.html" }, + { + "path": "web-animations/animation-model/animation-types/discrete-animation.html", + "url": "/web-animations/animation-model/animation-types/discrete-animation.html" + }, + { + "path": "web-animations/animation-model/animation-types/not-animatable.html", + "url": "/web-animations/animation-model/animation-types/not-animatable.html" + }, + { + "path": "web-animations/animation-model/keyframes/effect-value-context.html", + "url": "/web-animations/animation-model/keyframes/effect-value-context.html" + }, { "path": "web-animations/animation-timeline/document-timeline.html", "url": "/web-animations/animation-timeline/document-timeline.html" @@ -28759,6 +28853,26 @@ "path": "web-animations/animation/finish.html", "url": "/web-animations/animation/finish.html" }, + { + "path": "web-animations/animation/finished.html", + "url": "/web-animations/animation/finished.html" + }, + { + "path": "web-animations/animation/id.html", + "url": "/web-animations/animation/id.html" + }, + { + "path": "web-animations/animation/oncancel.html", + "url": "/web-animations/animation/oncancel.html" + }, + { + "path": "web-animations/animation/onfinish.html", + "url": "/web-animations/animation/onfinish.html" + }, + { + "path": "web-animations/animation/pause.html", + "url": "/web-animations/animation/pause.html" + }, { "path": "web-animations/animation/play.html", "url": "/web-animations/animation/play.html" @@ -28771,6 +28885,14 @@ "path": "web-animations/animation/playbackRate.html", "url": "/web-animations/animation/playbackRate.html" }, + { + "path": "web-animations/animation/ready.html", + "url": "/web-animations/animation/ready.html" + }, + { + "path": "web-animations/animation/reverse.html", + "url": "/web-animations/animation/reverse.html" + }, { "path": "web-animations/keyframe-effect/constructor.html", "url": "/web-animations/keyframe-effect/constructor.html" @@ -35091,6 +35213,7 @@ }, "local_changes": { "deleted": [], + "deleted_reftests": {}, "items": {}, "reftest_nodes": {} }, @@ -35587,6 +35710,66 @@ "url": "/compat/webkit-text-fill-color-property-001d.html" } ], + "compat/webkit-text-fill-color-property-002.html": [ + { + "path": "compat/webkit-text-fill-color-property-002.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-002-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-002.html" + } + ], + "compat/webkit-text-fill-color-property-003.html": [ + { + "path": "compat/webkit-text-fill-color-property-003.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-003-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-003.html" + } + ], + "compat/webkit-text-fill-color-property-004.html": [ + { + "path": "compat/webkit-text-fill-color-property-004.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-004-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-004.html" + } + ], + "compat/webkit-text-fill-color-property-005.html": [ + { + "path": "compat/webkit-text-fill-color-property-005.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-005-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-005.html" + } + ], + "compat/webkit-text-fill-color-property-006.html": [ + { + "path": "compat/webkit-text-fill-color-property-006.html", + "references": [ + [ + "/compat/webkit-text-fill-color-property-006-ref.html", + "==" + ] + ], + "url": "/compat/webkit-text-fill-color-property-006.html" + } + ], "custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag.html": [ { "path": "custom-elements/registering-custom-elements/unresolved-element-pseudoclass/unresolved-element-pseudoclass-css-test-custom-tag.html", @@ -41336,7 +41519,7 @@ } ] }, - "rev": "20fa4a3a71ab7a2f75b4febbe2e98aeeaf022c2b", + "rev": "0a518aaff73532a26e175789f7e75fa99593ac64", "url_base": "/", "version": 3 } diff --git a/tests/wpt/metadata/cssom-view/elementScroll.html.ini b/tests/wpt/metadata/cssom-view/elementScroll.html.ini index 8d1d147753b..706def9d330 100644 --- a/tests/wpt/metadata/cssom-view/elementScroll.html.ini +++ b/tests/wpt/metadata/cssom-view/elementScroll.html.ini @@ -2,3 +2,4 @@ type: testharness [Element scroll maximum test] expected: FAIL + diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html.ini new file mode 100644 index 00000000000..d0e9c948e3a --- /dev/null +++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-1.html.ini @@ -0,0 +1,6 @@ +[window-onerror-with-cross-frame-event-listeners-1.html] + type: testharness + bug: https://github.com/servo/servo/issues/3311 + [The error event from an event listener should fire on that listener's global] + expected: FAIL + diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html.ini new file mode 100644 index 00000000000..3d72563832c --- /dev/null +++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-2.html.ini @@ -0,0 +1,6 @@ +[window-onerror-with-cross-frame-event-listeners-2.html] + type: testharness + bug: https://github.com/servo/servo/issues/3311 + [The error event from an event listener should fire on that listener's global] + expected: FAIL + diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html.ini new file mode 100644 index 00000000000..10f8529a133 --- /dev/null +++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-3.html.ini @@ -0,0 +1,6 @@ +[window-onerror-with-cross-frame-event-listeners-3.html] + type: testharness + bug: https://github.com/servo/servo/issues/3311 + [The error event from an event listener should fire on that listener's global] + expected: FAIL + diff --git a/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html.ini b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html.ini new file mode 100644 index 00000000000..eff06558b41 --- /dev/null +++ b/tests/wpt/metadata/html/webappapis/scripting/processing-model-2/window-onerror-with-cross-frame-event-listeners-4.html.ini @@ -0,0 +1,6 @@ +[window-onerror-with-cross-frame-event-listeners-4.html] + type: testharness + bug: https://github.com/servo/servo/issues/3311 + [The error event from an event listener should fire on that listener's global] + expected: FAIL + diff --git a/tests/wpt/metadata/mozilla-sync b/tests/wpt/metadata/mozilla-sync index 0758a6a54f4..fe5dedf7818 100644 --- a/tests/wpt/metadata/mozilla-sync +++ b/tests/wpt/metadata/mozilla-sync @@ -1 +1 @@ -3d4416e1b0ae758e68900f725979238cc0128f8b \ No newline at end of file +9c172f49d08fe9019b0ba193ea4d75c6ddb95cda \ No newline at end of file diff --git a/tests/wpt/metadata/websockets/constructor/018.html.ini b/tests/wpt/metadata/websockets/constructor/018.html.ini new file mode 100644 index 00000000000..ba4b969fdd2 --- /dev/null +++ b/tests/wpt/metadata/websockets/constructor/018.html.ini @@ -0,0 +1,5 @@ +[018.html] + type: testharness + [WebSockets: NULL char in url] + expected: FAIL + diff --git a/tests/wpt/mozilla/meta/MANIFEST.json b/tests/wpt/mozilla/meta/MANIFEST.json index 0c5279fc574..aa4e376ac97 100644 --- a/tests/wpt/mozilla/meta/MANIFEST.json +++ b/tests/wpt/mozilla/meta/MANIFEST.json @@ -8,6 +8,7 @@ }, "local_changes": { "deleted": [], + "deleted_reftests": {}, "items": { "reftest": { "css/abs-overflow-stackingcontext.html": [ diff --git a/tests/wpt/web-platform-tests/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html b/tests/wpt/web-platform-tests/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html deleted file mode 100644 index d8ab8d4f26a..00000000000 --- a/tests/wpt/web-platform-tests/DOMEvents/tests/approved/EventObject.after.dispatchEvent.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - Event.defaultPrevented is reset after dipatchEvent() - - - - -
- - - - - - diff --git a/tests/wpt/web-platform-tests/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html b/tests/wpt/web-platform-tests/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html deleted file mode 100644 index a2e44c9c8cf..00000000000 --- a/tests/wpt/web-platform-tests/DOMEvents/tests/submissions/Microsoft/converted/EventObject.after.dispatchEvent.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - Event.defaultPrevented is reset after dipatchEvent() - - - - -
- - - - - - diff --git a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html index 799091d55ac..9c2b0a138c9 100644 --- a/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html +++ b/tests/wpt/web-platform-tests/FileAPI/blob/Blob-constructor.html @@ -23,22 +23,28 @@ test(function() { assert_equals(String(blob), '[object Blob]'); assert_equals(blob.size, 0); assert_equals(blob.type, ""); -}, "no-argument Blob constructor"); +}, "Blob constructor with no arguments"); test(function() { assert_throws(new TypeError(), function() { var blob = Blob(); }); -}, "no-argument Blob constructor without 'new'"); +}, "Blob constructor with no arguments, without 'new'"); test(function() { var blob = new Blob; assert_true(blob instanceof Blob); assert_equals(blob.size, 0); assert_equals(blob.type, ""); -}, "no-argument Blob constructor without brackets"); +}, "Blob constructor without brackets"); +test(function() { + var blob = new Blob(undefined); + assert_true(blob instanceof Blob); + assert_equals(String(blob), '[object Blob]'); + assert_equals(blob.size, 0); + assert_equals(blob.type, ""); +}, "Blob constructor with undefined as first argument"); // blobParts argument (WebIDL). test(function() { var args = [ null, - undefined, true, false, 0, diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002-ref.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002-ref.html new file mode 100644 index 00000000000..00c5072f85d --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002-ref.html @@ -0,0 +1,25 @@ + + + +webkit-text-fill-color on selected text reference + + + + +

Pass if color of selected text is green or inverted (depending on the platform convention), but not red

+ + + diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002.html new file mode 100644 index 00000000000..8ed14ccc83c --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-002.html @@ -0,0 +1,29 @@ + + + +webkit-text-fill-color should take effect while rendering selected text + + + + + + + +

Pass if color of selected text is green or inverted (depending on the platform convention), but not red

+ + + diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003-ref.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003-ref.html new file mode 100644 index 00000000000..bbfd78e37ff --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003-ref.html @@ -0,0 +1,28 @@ + + + +webkit-text-fill-color on ::-moz-selection selected text reference + + + + +

Pass if color of selected text is green!!!

+ + + diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003.html new file mode 100644 index 00000000000..dcbd70b18f5 --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-003.html @@ -0,0 +1,35 @@ + + + +webkit-text-fill-color should take effect while rendering ::-moz-selection selected text + + + + + + + +

Pass if color of selected text is green!!!

+ + + diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004-ref.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004-ref.html new file mode 100644 index 00000000000..583cf9a358d --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004-ref.html @@ -0,0 +1,34 @@ + + +webkit-text-fill-color on MathML reference + + + + +

Pass if color of operators and operands are all green!!!

+ + + + + a + 2 + + + + + b + 2 + + + = + + c + 2 + + + + diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004.html new file mode 100644 index 00000000000..739418d98e5 --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-004.html @@ -0,0 +1,38 @@ + + +webkit-text-fill-color should take effect while rendering MathML + + + + + + + +

Pass if color of operators and operands are all green!!!

+ + + + + a + 2 + + + + + b + 2 + + + = + + c + 2 + + + + diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005-ref.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005-ref.html new file mode 100644 index 00000000000..f173137fabf --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005-ref.html @@ -0,0 +1,13 @@ + + +webkit-text-fill-color on text-decoration underline reference + + + +

Pass if text underline is green!!!

diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005.html new file mode 100644 index 00000000000..b3549d68b17 --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-005.html @@ -0,0 +1,17 @@ + + +webkit-text-fill-color should take effect while rendering text-decoration underline + + + + + + +

Pass if text underline is green!!!

diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006-ref.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006-ref.html new file mode 100644 index 00000000000..602d296bdb4 --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006-ref.html @@ -0,0 +1,24 @@ + + +webkit-text-fill-color on text-overflow ellipsis reference + + + + +

Test passes if there is a green ellipsis after "TestChecks".

+
+ TestChecksThatTextColorAndEllipsisColorShouldBeTheSame +
+ diff --git a/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006.html b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006.html new file mode 100644 index 00000000000..4eb37e9e951 --- /dev/null +++ b/tests/wpt/web-platform-tests/compat/webkit-text-fill-color-property-006.html @@ -0,0 +1,28 @@ + + +webkit-text-fill-color should take effect while rendering text-overflow ellipsis + + + + + + + +

Test passes if there is a green ellipsis after "TestChecks".

+
+ TestChecksThatTextColorAndEllipsisColorShouldBeTheSame +
+ diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-allowed.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-allowed.sub.html index 57889e5966c..19cf6811c57 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-allowed.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-allowed.sub.html @@ -32,7 +32,7 @@ form-action 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self'; -

Tests that allowed form actions work correctly. If this test passes, you will see a page indicating a form was POSTed.

+

Tests that allowed form actions work correctly.

diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-blocked.sub.html index 33ce163af24..0960a8a02f2 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-blocked.sub.html @@ -31,7 +31,7 @@ form-action 'none'; script-src 'self' 'unsafe-inline'; connect-src 'self'; -

Tests that blocking form actions works correctly. If this test passes, a CSP violation will be generated, and will not see a page indicating a form was POSTed.

+

Tests that blocking form actions works correctly.

diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-allowed.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-allowed.sub.html index 2f2804b64bb..a7d3e584b83 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-allowed.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-allowed.sub.html @@ -33,7 +33,8 @@ form-action 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self'; -

Tests that allowed form actions work correctly. If this test passes, you will see a page indicating a form was POSTed.

+

Tests that allowed form actions work correctly + with GET and a redirect.

diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-blocked.sub.html index 559e159f057..0910eb41964 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-get-blocked.sub.html @@ -33,7 +33,8 @@ form-action 'none'; script-src 'self' 'unsafe-inline'; connect-src 'self'; -

Tests that allowed form actions work correctly. If this test passes, you will see a page indicating a form was POSTed.

+

Tests that disallowed form actions are blocked + with GET and redirects.

diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-redirect-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-redirect-blocked.sub.html index 1d9d5693ac1..e311817eb59 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-redirect-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/form-action-src-redirect-blocked.sub.html @@ -33,7 +33,7 @@ form-action 'self'; script-src 'self' 'unsafe-inline'; connect-src 'self'; -

Tests that blocking form redirect works correctly. If this test passes, a CSP violation will be generated, and will not see a page indicating a form was POSTed.

+

Tests that blocking a POST form with a redirect works correctly. If this test passes, a CSP violation will be generated.

diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/meta-outside-head.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/meta-outside-head.sub.html index ac103981c3c..41618d4ef77 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/meta-outside-head.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/meta-outside-head.sub.html @@ -14,14 +14,14 @@ script-src 'self' 'unsafe-inline' 'none'; connect-src 'self'; - +

This test checks that Content Security Policy delivered via a meta element is not enforced if the element is outside the document's head.

+
- + diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/metaHelper.js b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/metaHelper.js new file mode 100644 index 00000000000..9191a39c73b --- /dev/null +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/metaHelper.js @@ -0,0 +1,5 @@ +if (typeof aa != 'undefined') { + alert_assert(aa); +} else { + alert_assert("Failed - allowed inline script blocked by meta policy outside head."); +} diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/plugintypes-notype-data.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/plugintypes-notype-data.sub.html index 59179c71615..eb60d5d4cff 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/plugintypes-notype-data.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/plugintypes-notype-data.sub.html @@ -6,7 +6,7 @@ plugintypes-notype-data - + @@ -34,12 +33,9 @@ script-src 'self' 'nonce-nonceynonce' 'sha256-dWTP4Di8KBjaiXvQ5mRquI9OoBSo921ahY var scriptContent2 = "window.finish('" + nonMatchingContent + "');"; var script1 = document.createElement('script'); - script1.innerHTML = scriptContent1; var script2 = document.createElement('script'); - script2.innerHTML = scriptContent2; - script1.test = async_test("Inline script with hash in CSP"); - script2.test = async_test("Inline script without hash in CSP"); + script1.test = async_test("Only matching content runs even with NFC normalization."); var failure = function() { assert_unreached(); @@ -51,16 +47,18 @@ script-src 'self' 'nonce-nonceynonce' 'sha256-dWTP4Di8KBjaiXvQ5mRquI9OoBSo921ahY script1.test.done(); }); } else { - assert_unreached(); + script1.test.step(function() { + assert_unreached("nonMatchingContent script ran"); + }); } } script1.onerror = failure; - script2.onerror = script2.test.step_func(function() { - script2.test.done(); - }); - document.body.appendChild(script1); + document.body.appendChild(script2); + script2.textContent = scriptContent2; + document.body.appendChild(script1); + script1.textContent = scriptContent1;

diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/scriptnonce-basic-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/scriptnonce-basic-blocked.sub.html index 18ad1d4f66c..4815ca10013 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/scriptnonce-basic-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/scriptnonce-basic-blocked.sub.html @@ -6,49 +6,16 @@ scriptnonce-basic-blocked - - + diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/stylehash-allowed.sub.html.sub.headers b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/stylehash-allowed.sub.html.sub.headers index 3f0aff7db89..2b519e85ec2 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/stylehash-allowed.sub.html.sub.headers +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib-2/stylehash-allowed.sub.html.sub.headers @@ -3,4 +3,4 @@ Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0, false Pragma: no-cache Set-Cookie: stylehash-allowed={{$id:uuid()}}; Path=/content-security-policy/blink-contrib-2 -Content-Security-Policy: style-src 'self' 'sha1-eYyYGmKWdhpUewohaXk9o8IaLSw=' 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw=' 'sha384-bSVm1i3sjPBRM4TwZtYTDjk9JxZMExYHWbFmP1SxDhJH4ue0Wu9OPOkY5hcqRcSt' 'sha512-440MmBLtj9Kp5Bqloogn9BqGDylY8vFsv5/zXL1zH2fJVssCoskRig4gyM+9KqwvCSapSz5CVoUGHQcxv43UQg=='; script-src 'self' 'unsafe-inline'; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}} +Content-Security-Policy: style-src 'self' 'sha256-pAKi9r4/WB7fHydbE3F3t8i8602ij2JN8zHJpL2T5BM=' 'sha256-hndjYvzUzy2Ykuad81Cwsl1FOXX/qYs/aDVyUyNZwBw=' 'sha384-bSVm1i3sjPBRM4TwZtYTDjk9JxZMExYHWbFmP1SxDhJH4ue0Wu9OPOkY5hcqRcSt' 'sha512-440MmBLtj9Kp5Bqloogn9BqGDylY8vFsv5/zXL1zH2fJVssCoskRig4gyM+9KqwvCSapSz5CVoUGHQcxv43UQg=='; script-src 'self' 'unsafe-inline'; connect-src 'self'; report-uri /content-security-policy/support/report.py?op=put&reportID={{$id}} diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-allowed.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-allowed.sub.html index 0562e0fd547..2beb00d020c 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-allowed.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-allowed.sub.html @@ -15,16 +15,27 @@ connect-src 'self' http://{{host}}:{{ports[http][0]}}; script-src 'self' 'unsafe

- diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-blocked.sub.html index c459790d88a..fdde9e760b2 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-blocked.sub.html @@ -15,16 +15,26 @@ connect-src 'self' http://{{host}}:{{ports[http][0]}}; script-src 'self' 'unsafe
- diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-redirect-to-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-redirect-to-blocked.sub.html index b60487bcef5..3d03100e366 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-redirect-to-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/connect-src-beacon-redirect-to-blocked.sub.html @@ -18,13 +18,24 @@ connect-src 'self'; script-src 'self' 'unsafe-inline';

The beacon should not follow the redirect to http://www1.{{host}}:{{ports[http][0]}}/content-security-policy/support/fail.png and send a CSP violation report.

Verify that a CSP connect-src directive blocks redirects.

- diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/resources/worker-importscripts.js b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/resources/worker-importscripts.js index ca9f2eca48e..65ec6f44624 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/resources/worker-importscripts.js +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/resources/worker-importscripts.js @@ -2,5 +2,5 @@ try { importScripts("/content-security-policy/blink-contrib/resources/post-message.js"); postMessage("importScripts allowed"); } catch (e) { - postMessage("importScripts blocked: " + e); + postMessage("importScripts blocked"); } diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-allowed.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-allowed.sub.html index 007d66c1fcb..17da111a84c 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-allowed.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-allowed.sub.html @@ -16,6 +16,11 @@ connect-src 'self' http://{{host}}:{{ports[http][0]}}; script-src 'self' 'unsafe
- diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-blocked.sub.html index f049b933632..63225bf275e 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/shared-worker-connect-src-blocked.sub.html @@ -22,6 +22,11 @@ connect-src *; script-src 'self' 'unsafe-inline'; should be sent since the worker's policy doesn't specify a report-uri.

- diff --git a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/worker-importscripts-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/worker-importscripts-blocked.sub.html index d3240e385de..9ec49c03025 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/worker-importscripts-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/blink-contrib/worker-importscripts-blocked.sub.html @@ -23,7 +23,7 @@ script-src 'self' 'unsafe-inline' 'unsafe-eval' 'unsafe-inline' 127.0.0.1:8000; worker.onmessage = function(event) { result = event.data; test(function() { - assert_equals(result, 'importScripts blocked: NetworkError: Failed to execute \'importScripts\' on \'WorkerGlobalScope\': The script at \'http://{{host}}:{{ports[http][0]}}/content-security-policy/blink-contrib/resources/post-message.js\' failed to load.') + assert_equals(result, 'importScripts blocked') }); log("TEST COMPLETE"); }; diff --git a/tests/wpt/web-platform-tests/content-security-policy/child-src/child-src-worker-blocked.sub.html b/tests/wpt/web-platform-tests/content-security-policy/child-src/child-src-worker-blocked.sub.html index d8908b17b3d..8ed6b157a81 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/child-src/child-src-worker-blocked.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/child-src/child-src-worker-blocked.sub.html @@ -17,6 +17,10 @@ child-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-inline'; connect-src - \ No newline at end of file + diff --git a/tests/wpt/web-platform-tests/content-security-policy/media-src/media-src-redir-bug.sub.html b/tests/wpt/web-platform-tests/content-security-policy/media-src/media-src-redir-bug.sub.html index f12f8ffc56f..b8351193041 100644 --- a/tests/wpt/web-platform-tests/content-security-policy/media-src/media-src-redir-bug.sub.html +++ b/tests/wpt/web-platform-tests/content-security-policy/media-src/media-src-redir-bug.sub.html @@ -55,8 +55,8 @@