Bug 588990 - Part 1: Add a SpecialPowers.gc() API; r=ehsan

This commit is contained in:
Jonas Sicking 2011-04-19 13:48:08 -04:00
parent 30255aeb19
commit 4d99b1c73f

View File

@ -200,6 +200,10 @@ SpecialPowers.prototype = {
createSystemXHR: function() {
return Cc["@mozilla.org/xmlextras/xmlhttprequest;1"]
.createInstance(Ci.nsIXMLHttpRequest);
},
gc: function() {
this.DOMWindowUtils.garbageCollect();
}
};