author Boris Zbarsky <>
Mon, 04 Aug 2014 01:25:30 -0400
changeset 217382 48788ecea2c6fd740386b5413f8a308e14f7b8a5
child 497594 58adc643dcdc20eccb4d30bc454b50420e96c020
permissions -rw-r--r--
Bug 1045096 - Make sure initial about:blank in iframes have a nsDOMNavigationTiming object, so we don't end up with window.performance throwing when accessed on their window. r=smaug, a=sledru

  <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"/>
<a target="_blank" href="">Mozilla Bug 1045096</a>
<p id="display"></p>
<div id="content" style="display: none">

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

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