mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 938945, gc/cc more during test runs, f=Ms2ger, pending-r=ted, a=Tomcat on a CLOSED TREE
This commit is contained in:
parent
56048661e3
commit
5f1fa36bf5
@ -7,6 +7,16 @@
|
||||
-->
|
||||
<script>
|
||||
window.addEventListener("load", function() {
|
||||
(parent.TestRunner || parent.wrappedJSObject.TestRunner).testUnloaded();
|
||||
var runner = (parent.TestRunner || parent.wrappedJSObject.TestRunner);
|
||||
runner.testUnloaded();
|
||||
|
||||
if (SpecialPowers) {
|
||||
if (!runner.garbageCollectCount) {
|
||||
runner.garbageCollectCount = 0;
|
||||
}
|
||||
if (runner.garbageCollectCount++ % 10 == 0) {
|
||||
SpecialPowers.DOMWindowUtils.garbageCollect();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user