From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- ...extension-allowed-by-permissions-policy-attribute.https.sub.html | 2 +- .../resources/permissions-policy-payment-extension.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'testing/web-platform/tests/permissions-policy') diff --git a/testing/web-platform/tests/permissions-policy/payment-extension-allowed-by-permissions-policy-attribute.https.sub.html b/testing/web-platform/tests/permissions-policy/payment-extension-allowed-by-permissions-policy-attribute.https.sub.html index ef36bf97f1..d96bc5a0d1 100644 --- a/testing/web-platform/tests/permissions-policy/payment-extension-allowed-by-permissions-policy-attribute.https.sub.html +++ b/testing/web-platform/tests/permissions-policy/payment-extension-allowed-by-permissions-policy-attribute.https.sub.html @@ -13,7 +13,7 @@ promise_test(t => { return test_feature_availability_with_post_message_result( - t, cross_origin_src, "NotSupportedError#The 'payment' feature is not " + + t, cross_origin_src, "NotSupportedError#The 'payment' or 'publickey-credentials-create' features are not " + "enabled in this document. Permissions Policy may be used to " + "delegate Web Payment capabilities to cross-origin child frames."); }, feature_name + ' is not supported in cross-origin iframe without ' + header); diff --git a/testing/web-platform/tests/permissions-policy/resources/permissions-policy-payment-extension.html b/testing/web-platform/tests/permissions-policy/resources/permissions-policy-payment-extension.html index 86f0ea3e48..3f628ae25d 100644 --- a/testing/web-platform/tests/permissions-policy/resources/permissions-policy-payment-extension.html +++ b/testing/web-platform/tests/permissions-policy/resources/permissions-policy-payment-extension.html @@ -16,7 +16,7 @@ let authenticatorArgs = { window.onload = async function() { await window.test_driver.add_virtual_authenticator(authenticatorArgs); let enabled = true; - let message = `OK`; + let name = `OK`; try { const publicKey = { rp: { @@ -53,8 +53,8 @@ window.onload = async function() { }); } catch (e) { enabled = false; - message = e.name + '#' + e.message; + name = e.name + '#' + e.message; } - parent.postMessage({ type: 'availability-result', enabled, message }, '*'); + parent.postMessage({ type: 'availability-result', enabled, name }, '*'); } -- cgit v1.2.3