OLD | NEW |
(Empty) | |
| 1 <?php |
| 2 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. |
| 5 |
| 6 // This test ensures that payment feature when enabled for all works across |
| 7 // all origins regardless whether allowpaymentrequest is set. (Feature policy |
| 8 // header takes precedence over the absence of allowpaymentrequest.) |
| 9 |
| 10 Header("Feature-Policy: {\"payment\": [\"*\"]}"); |
| 11 ?> |
| 12 |
| 13 <!DOCTYPE html> |
| 14 <script src="../../resources/testharness.js"></script> |
| 15 <script src="../../resources/testharnessreport.js"></script> |
| 16 <script> |
| 17 if (window.testRunner) { |
| 18 testRunner.dumpAsText(); |
| 19 testRunner.dumpChildFramesAsText(); |
| 20 } |
| 21 </script> |
| 22 <iframe id="f1" src="resources/feature-policy-payment-enabled.html"></iframe> |
| 23 <iframe id="f2" src="http://localhost:8000/feature-policy/resources/feature-poli
cy-payment-enabled.html"></iframe> |
| 24 <iframe id="f3" src="resources/feature-policy-payment-enabled.html" allowpayment
request></iframe> |
| 25 <iframe id="f4" src="http://localhost:8000/feature-policy/resources/feature-poli
cy-payment-enabled.html" allowpaymentrequest></iframe> |
OLD | NEW |