From 4d99b1c73f58119a4bc2527d8c2b119cf7f62ba2 Mon Sep 17 00:00:00 2001 From: Jonas Sicking Date: Tue, 19 Apr 2011 13:48:08 -0400 Subject: [PATCH] Bug 588990 - Part 1: Add a SpecialPowers.gc() API; r=ehsan --- testing/mochitest/specialpowers/content/specialpowers.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/testing/mochitest/specialpowers/content/specialpowers.js b/testing/mochitest/specialpowers/content/specialpowers.js index 926055139401..8bfb460f4fc2 100644 --- a/testing/mochitest/specialpowers/content/specialpowers.js +++ b/testing/mochitest/specialpowers/content/specialpowers.js @@ -200,6 +200,10 @@ SpecialPowers.prototype = { createSystemXHR: function() { return Cc["@mozilla.org/xmlextras/xmlhttprequest;1"] .createInstance(Ci.nsIXMLHttpRequest); + }, + + gc: function() { + this.DOMWindowUtils.garbageCollect(); } };