tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

payment-request-insecure.http.html (628B)


      1 <!DOCTYPE html>
      2 <!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
      3 <meta charset="utf-8">
      4 <title>Test for PaymentRequest Constructor (insecure)</title>
      5 <link rel="help" href="https://w3c.github.io/payment-request/#paymentrequest-interface">
      6 <script src="/resources/testharness.js"></script>
      7 <script src="/resources/testharnessreport.js"></script>
      8 <script>
      9 test(() => {
     10  assert_false(isSecureContext);
     11  assert_false("PaymentRequest" in window);
     12 }, "PaymentRequest constructor must not be exposed in insecure context");
     13 </script>