docshell/test/test_bug1045096.html
author Jon Coppeard <jcoppeard@mozilla.com>
Wed, 22 Aug 2018 14:54:17 +0100
changeset 432835 3f1d6721cab0d1668a2441f7b0b7d018f1ac6475
parent 197640 d1b960226e0bd93e1380d45977ccdb25d13ce5a3
child 439146 58adc643dcdc20eccb4d30bc454b50420e96c020
permissions -rw-r--r--
Bug 1469599 - Associate all module scripts in a module graph with DOM elements before execution r=hsivonen

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1045096
-->
<head>
  <meta charset="utf-8">
  <title>Test for Bug 1045096</title>
  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1045096">Mozilla Bug 1045096</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
</pre>
  <script type="application/javascript">

  /** Test for Bug 1045096 **/
  var i = document.createElement('iframe');
  i.src = "javascript:false"; // This is required!
  $("content").appendChild(i);
  ok(i.contentWindow.performance, "Should have a performance object");
  </script>
</body>
</html>