Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: third_party/WebKit/LayoutTests/payments/payment-request-in-iframe-allowed.html

Issue 2394473002: iframes with allowpaymentrequest attribute are allowed to make payment requests. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/payments/payment-request-in-iframe-allowed.html
diff --git a/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html b/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe-allowed.html
similarity index 65%
copy from third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html
copy to third_party/WebKit/LayoutTests/payments/payment-request-in-iframe-allowed.html
index 69193a237dab5d6768c61e9e3c85261fc36d45b5..0b073f2b3d1478009d390e41acd92fbdf2b24fab 100644
--- a/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html
+++ b/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe-allowed.html
@@ -3,14 +3,12 @@
<title>Test for PaymentRequest in an iframe</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
-<iframe srcdoc="
+<iframe allowpaymentrequest srcdoc="
please use gerrit instead 2016/10/13 00:26:48 Only one space between allowpaymentrequest and src
pals 2016/10/14 08:11:18 Done.
<!DOCTYPE html>
<meta charset='utf-8'>
<script>
window.top.test(function() {
- window.top.assert_throws({name: 'SecurityError'}, function() {
new PaymentRequest([{supportedMethods: ['foo']}], {total: {label: 'label', amount: {currency: 'USD', value: '5.00'}}});
- }, 'If the browsing context of the script calling the constructor is not a top-level browsing context, then throw a SecurityError.');
-});
+ }, 'Scripts in the iframe element with allowpaymentrequest content attribute are allowed to make payment requests.');
</script>
"></iframe>

Powered by Google App Engine
This is Rietveld 408576698