mirror of
https://github.com/Feodor2/Mypal68.git
synced 2025-06-18 14:55:44 -04:00
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
<?xml version="1.0"?>
|
|
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
|
|
|
|
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
title="bug 471493 'crash [@ nsPropertyTable::GetPropertyInternal]'"
|
|
onload="shutdown();" class="reftest-wait">
|
|
|
|
<script type="application/javascript">
|
|
<![CDATA[
|
|
function shutdown() {
|
|
!SpecialPowers.Services.appinfo.accessibilityEnabled &&
|
|
dump("### Error : Accessibility is expected to be enabled.\n");
|
|
|
|
// Force garbage collection. We try really hard to garbage collect
|
|
// everythin here to ensure that all a11y xpcom bits are shut down and
|
|
// avoid intermittent timeouts.
|
|
SpecialPowers.gc();
|
|
SpecialPowers.forceShrinkingGC();
|
|
SpecialPowers.forceCC();
|
|
SpecialPowers.gc();
|
|
SpecialPowers.forceShrinkingGC();
|
|
SpecialPowers.forceCC();
|
|
|
|
if (SpecialPowers.Services.appinfo.accessibilityEnabled) {
|
|
let observe = (subject, topic, data) => {
|
|
SpecialPowers.Services.obs.removeObserver(observe, "a11y-init-or-shutdown");
|
|
data === "0" && document.documentElement.removeAttribute("class");
|
|
};
|
|
SpecialPowers.Services.obs.addObserver(observe, "a11y-init-or-shutdown");
|
|
} else {
|
|
document.documentElement.removeAttribute("class");
|
|
}
|
|
}
|
|
]]>
|
|
</script>
|
|
</window>
|