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

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

Issue 2394473002: iframes with allowpaymentrequest attribute are allowed to make payment requests. (Closed)
Patch Set: Rebaselined tests 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.html
diff --git a/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html b/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html
index 69193a237dab5d6768c61e9e3c85261fc36d45b5..a3ed917a831fc5b954c6d26fe0dfc842b1bc39f7 100644
--- a/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.html
+++ b/third_party/WebKit/LayoutTests/payments/payment-request-in-iframe.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/17 13:57:48 You also need one test file that's exactly like th
pals 2016/10/18 04:39:21 Messed up during rebase. Corrected now.
<!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