content/base/test/file_bug557892.html
author Margaret Leibovic <margaret.leibovic@gmail.com>
Mon, 25 Aug 2014 15:28:10 -0700
changeset 216776 8d7b3bfaf3ab9bb3c32afb51d9714246d7c854f4
parent 159583 a1a846de1a8aff4c1bd00f7e72e2c912222f108f
permissions -rw-r--r--
Bug 996753 - Telemetry probes for settings pages. r=liuche, a=sledru

<html><head>
<title>Crash [@ nsGenericElement::SetAttr] with classList.toggle</title>
<script>
var classList;
var interval;
function run() {
  classList = window.frames[0].document.documentElement.classList;
  window.frames[0].location.reload();
  interval = setInterval(function(aClassList) {aClassList.toggle('a'); forcegc();}, 10, classList);
  // Let the interval run for awhile and close the window after 2 seconds.
  setTimeout(function() { clearInterval(interval); window.opener.done(); window.close(); }, 2000);
}

function forcegc(){
  SpecialPowers.forceGC();
  SpecialPowers.gc();
}

    </script>
  </head>
  <body onload="run()">
    <iframe></iframe>
  </body>
</html>