Skip to content

Commit

Permalink
fix permissions-policy-payment-extension.html to only check error name (
Browse files Browse the repository at this point in the history
#45455)

* fix permissions-policy-payment-extension.html to only check error name

* Update payment-extension-allowed-by-permissions-policy-attribute.https.sub.html
  • Loading branch information
marcoscaceres committed May 16, 2024
1 parent ef3a314 commit 0086537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@
var same_origin_src = '/permissions-policy/resources/permissions-policy-payment-extension.html';
var cross_origin_src = 'https://{{domains[www]}}:{{ports[https][0]}}' +
same_origin_src;
var feature_name = 'permissions policy "payment"';
var feature_name = 'WebAuthn "payment" extension';
var header = 'allow="payment" attribute';

promise_test(t => {
return test_feature_availability_with_post_message_result(
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.");
t, cross_origin_src, "NotSupportedError");
}, feature_name + ' is not supported in cross-origin iframe without ' + header);

promise_test(t => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
});
} catch (e) {
enabled = false;
name = e.name + '#' + e.message;
name = e.name;
}
parent.postMessage({ type: 'availability-result', enabled, name }, '*');
}
Expand Down

0 comments on commit 0086537

Please sign in to comment.