author Boris Zbarsky <>
Mon, 12 Jun 2017 22:17:03 -0400
changeset 363611 6977697a2dcf830929b1c4f9babbb006792de926
child 469641 ba6f655fd68963530c866d0d4a48c3db3d307777
permissions -rw-r--r--
Bug 1372371. Fix enumerability handling in the window resolve hook. r=qdot

  <meta charset="utf-8">
  <title>Test for Bug 1372371</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 1372371</a>
<p id="display"></p>
<div id="content" style="display: none">
<pre id="test">
  <script type="application/javascript">

  /** Test for Bug 1372371 **/
  var list = Object.getOwnPropertyNames(window);
  // Pick an interface name we would not have resolved here yet.
  isnot(list.indexOf("WebSocket"), -1, "WebSocket should be a property");
  is(list.indexOf("0"), 0, "Indexed props should be properties");