Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /web-nfc/nfc_insecure_context.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta charset=utf-8>
<title>Web NFC Test: insecure context</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<h2>Note</h2>
<ol>
<li>
</li>
</ol>
<script>
"use strict";
test(t => {
assert_false(isSecureContext);
assert_false('NDEFReader' in window);
}, 'NDEFReader requires a secure context');
</script>