1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/base/test/file_bug557892.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,25 @@ 1.4 +<html><head> 1.5 +<title>Crash [@ nsGenericElement::SetAttr] with classList.toggle</title> 1.6 +<script> 1.7 +var classList; 1.8 +var interval; 1.9 +function run() { 1.10 + classList = window.frames[0].document.documentElement.classList; 1.11 + window.frames[0].location.reload(); 1.12 + interval = setInterval(function(aClassList) {aClassList.toggle('a'); forcegc();}, 10, classList); 1.13 + // Let the interval run for awhile and close the window after 2 seconds. 1.14 + setTimeout(function() { clearInterval(interval); window.opener.done(); window.close(); }, 2000); 1.15 +} 1.16 + 1.17 +function forcegc(){ 1.18 + SpecialPowers.forceGC(); 1.19 + SpecialPowers.gc(); 1.20 +} 1.21 + 1.22 + </script> 1.23 + </head> 1.24 + <body onload="run()"> 1.25 + <iframe></iframe> 1.26 + </body> 1.27 +</html> 1.28 +