diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 14:29:10 +0000 |
commit | 2aa4a82499d4becd2284cdb482213d541b8804dd (patch) | |
tree | b80bf8bf13c3766139fbacc530efd0dd9d54394c /dom/u2f/tests/test_appid_facet_insecure.html | |
parent | Initial commit. (diff) | |
download | firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.tar.xz firefox-2aa4a82499d4becd2284cdb482213d541b8804dd.zip |
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/u2f/tests/test_appid_facet_insecure.html')
-rw-r--r-- | dom/u2f/tests/test_appid_facet_insecure.html | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dom/u2f/tests/test_appid_facet_insecure.html b/dom/u2f/tests/test_appid_facet_insecure.html new file mode 100644 index 0000000000..6c35e75015 --- /dev/null +++ b/dom/u2f/tests/test_appid_facet_insecure.html @@ -0,0 +1,44 @@ +<!DOCTYPE html> +<meta charset=utf-8> +<head> + <title>FIDO U2F: Insecure AppID / FacetID behavior</title> + <script src="/tests/SimpleTest/SimpleTest.js"></script> + <script type="text/javascript" src="frame_utils.js"></script> + <script type="text/javascript" src="u2futil.js"></script> + <script type="text/javascript" src="pkijs/asn1.js"></script> + <script type="text/javascript" src="pkijs/common.js"></script> + <script type="text/javascript" src="pkijs/x509_schema.js"></script> + <script type="text/javascript" src="pkijs/x509_simpl.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> +</head> +<body> +<h1>FIDO U2F: Insecure AppID / FacetID behavior</h1> +<ul> + <li><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1231681">Mozilla Bug 1231681 (initial implementation)</a></li> + <li><a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1245527">Mozilla Bug 1245527 (hardware rewrite)</a></li> +</ul> + +<div id="framediv"> + <iframe id="testing_frame"></iframe> +</div> + +<pre id="log"></pre> + +<script class="testbody" type="text/javascript"> +"use strict"; + +SimpleTest.waitForExplicitFinish(); + +// listen for messages from the test harness +window.addEventListener("message", handleEventMessage); +SpecialPowers.pushPrefEnv({"set": [["security.webauth.u2f", true], + ["security.webauth.webauthn_enable_softtoken", true], + ["security.webauth.webauthn_enable_android_fido2", false], + ["security.webauth.webauthn_enable_usbtoken", false]]}, + function(){ + document.getElementById('testing_frame').src = "http://test2.example.com/tests/dom/u2f/tests/frame_appid_facet_insecure.html"; + }); + +</script> +</body> +</html> |