last_test_to_unload_testsuite.xhtml (1377B)
1 <?xml version="1.0"?> 2 <?xml-stylesheet href="chrome://global/skin" type="text/css"?> 3 4 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" 5 title="bug 471493 'crash [@ nsPropertyTable::GetPropertyInternal]'" 6 onload="shutdown();" class="reftest-wait"> 7 8 <script type="application/javascript"> 9 <![CDATA[ 10 function shutdown() { 11 !SpecialPowers.Services.appinfo.accessibilityEnabled && 12 dump("### Error : Accessibility is expected to be enabled.\n"); 13 14 // Force garbage collection. We try really hard to garbage collect 15 // everythin here to ensure that all a11y xpcom bits are shut down and 16 // avoid intermittent timeouts. 17 SpecialPowers.gc(); 18 SpecialPowers.forceShrinkingGC(); 19 SpecialPowers.forceCC(); 20 SpecialPowers.gc(); 21 SpecialPowers.forceShrinkingGC(); 22 SpecialPowers.forceCC(); 23 24 if (SpecialPowers.Services.appinfo.accessibilityEnabled) { 25 let observe = (subject, topic, data) => { 26 SpecialPowers.Services.obs.removeObserver(observe, "a11y-init-or-shutdown"); 27 data === "0" && document.documentElement.removeAttribute("class"); 28 }; 29 SpecialPowers.Services.obs.addObserver(observe, "a11y-init-or-shutdown"); 30 } else { 31 document.documentElement.removeAttribute("class"); 32 } 33 } 34 ]]> 35 </script> 36 </window>