Skip to content

Commit

Permalink
Payment Request: use remote origin instead for policy test (#47015)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres authored Jul 10, 2024
1 parent ad75225 commit 1087e9f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/permissions-policy/resources/permissions-policy.js></script>
<script src=/common/get-host-info.sub.js></script>
<script>
'use strict';
var relative_path = '/permissions-policy/resources/permissions-policy-payment.html';
var base_src = '/permissions-policy/resources/redirect-on-load.html#';
var same_origin_src = base_src + relative_path;
var cross_origin_src = base_src + 'https://{{domains[www]}}:{{ports[https][0]}}' +
var cross_origin_src = base_src + get_host_info().REMOTE_ORIGIN +
relative_path;
var header = 'permissions policy allow="payment"';

Expand Down

0 comments on commit 1087e9f

Please sign in to comment.