dom/u2f/tests/test_appid_facet_subdomain.html
author Brian Grinstead <bgrinstead@mozilla.com>
Tue, 16 Apr 2019 03:53:28 +0000
changeset 531525 ba6f655fd68963530c866d0d4a48c3db3d307777
parent 470782 c10c705a1feae70c507bb644dcf2867cbe63db6f
child 531895 c83490ca7185506ddf5e9828f8159930c03d15a0
permissions -rw-r--r--
Bug 1544322 - Part 2.2 - Remove the [type] attribute for one-liner <script> tags loading files in /tests/SimpleTest/ in dom/ r=bzbarsky This is split from the previous changeset since if we include dom/ the file size is too large for phabricator to handle. This is an autogenerated commit to handle scripts loading mochitest harness files, in the simple case where the script src is on the same line as the tag. This was generated with https://bug1544322.bmoattachments.org/attachment.cgi?id=9058170 using the `--part 2` argument. Differential Revision: https://phabricator.services.mozilla.com/D27457

<!DOCTYPE html>
<meta charset=utf-8>
<head>
  <title>FIDO U2F: Subdomain AppID / FacetID behavior</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script src="/tests/SimpleTest/AddTask.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: Subdomain 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_usbtoken", false]]},
  function(){
    document.getElementById('testing_frame').src = "https://test1.example.com/tests/dom/u2f/tests/frame_appid_facet_subdomain.html";
  });

</script>

</body>
</html>