From 806f4960e2684a0e133a20a9408fcc24065db3ac Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 3 Oct 2019 07:22:26 +0000 Subject: [PATCH] Bug 1480903 [wpt PR 12303] - Fix a t.assert_unreached typo in a CSP test helper, a=testonly Automatic update from web-platform-testsFix a t.assert_unreached typo in a CSP test helper (#12303) Found via https://github.com/web-platform-tests/wpt/issues/10877#issuecomment-410348344. -- wpt-commits: 64a9cbb9aec8db0f84c076ae77045297fe8ea320 wpt-pr: 12303 UltraBlame original commit: 46cd6f41717a3d07bed82676d6a6c1fb17995e74 --- testing/web-platform/meta/MANIFEST.json | 2 +- .../embedded-enforcement/support/testharness-helper.sub.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testing/web-platform/meta/MANIFEST.json b/testing/web-platform/meta/MANIFEST.json index 9e60fc0654d9..3dec8140d69a 100644 --- a/testing/web-platform/meta/MANIFEST.json +++ b/testing/web-platform/meta/MANIFEST.json @@ -449293,7 +449293,7 @@ "support" ], "content-security-policy/embedded-enforcement/support/testharness-helper.sub.js": [ - "6d2e64f8f7e9026719e84c8fd1c09dd27c8d03b5", + "c1b2e673eced75db5bb3b47abcfef56bff62e465", "support" ], "content-security-policy/font-src/font-match-allowed.sub.html": [ diff --git a/testing/web-platform/tests/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js b/testing/web-platform/tests/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js index a2190b92ef31..87b463ddd350 100644 --- a/testing/web-platform/tests/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js +++ b/testing/web-platform/tests/content-security-policy/embedded-enforcement/support/testharness-helper.sub.js @@ -119,11 +119,11 @@ function assert_iframe_with_csp(t, url, csp, shouldBlock, urlId, blockedURI) { if (shouldBlock) { - window.onmessage = function (e) { + window.onmessage = t.step_func(function(e) { if (e.source != i.contentWindow) return; - t.assert_unreached('No message should be sent from the frame.'); - } + assert_unreached('No message should be sent from the frame.'); + }); i.onload = t.step_func(function () { setTimeout(t.step_func_done(function () {