mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
13 lines
628 B
HTML
13 lines
628 B
HTML
<!DOCTYPE html>
|
|
<!-- Copyright © 2017 Chromium authors and World Wide Web Consortium, (Massachusetts Institute of Technology, ERCIM, Keio University, Beihang). -->
|
|
<meta charset="utf-8">
|
|
<title>Test for PaymentRequest Constructor (insecure)</title>
|
|
<link rel="help" href="https://w3c.github.io/payment-request/#paymentrequest-interface">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script>
|
|
test(() => {
|
|
assert_false(isSecureContext);
|
|
assert_false("PaymentRequest" in window);
|
|
}, "PaymentRequest constructor must not be exposed in insecure context");
|
|
</script>
|