From f22c50bbd33c17395b6245017b517fa877bb9f3f Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 3 Jun 2020 04:24:59 +0000 Subject: [PATCH] Bug 1642564 [wpt PR 23907] - COEP: do not test exception message, a=testonly Automatic update from web-platform-tests COEP: do not test exception message It's implementation-defined, see https://bugzilla.mozilla.org/show_bug.cgi?id=1642149. -- wpt-commits: 5cf5c990b4e55923a055a04614dec1afa0439f9d wpt-pr: 23907 --- .../cross-origin-embedder-policy/require-corp-sw.https.html | 2 +- .../cross-origin-embedder-policy/resources/require-corp-sw.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html b/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html index bb154aecae81..05272d41a491 100644 --- a/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html +++ b/testing/web-platform/tests/html/cross-origin-embedder-policy/require-corp-sw.https.html @@ -32,7 +32,7 @@ promise_test(async t => { navigator.serviceWorker.addEventListener('message', resolve, {once: true})); worker.postMessage('WithoutCorp'); - assert_equals((await p).data, 'TypeError: Failed to fetch'); + assert_equals((await p).data, 'Exception: TypeError'); }, "fetch() to no CORP response should not succeed."); promise_test(async t => { diff --git a/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js b/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js index 3e2f069ded03..10f05726fa29 100644 --- a/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js +++ b/testing/web-platform/tests/html/cross-origin-embedder-policy/resources/require-corp-sw.js @@ -19,7 +19,7 @@ self.addEventListener('message', e => { const response = await fetch(url, { mode: 'no-cors' }); result = response.type; } catch (error) { - result = `${error.name}: ${error.message}`; + result = `Exception: ${error.name}`; } finally { e.source.postMessage(result); }