Bug 975552 - [Australis] Let the leak detector know about the preloaded customization tab r=bustage, a=sledru.
authorTim Taubert <ttaubert@mozilla.com>
Mon, 03 Mar 2014 10:38:15 -0500
changeset 183104 bca673f407de9ebb82b397f9c80cd89aebad62e7
parent 183103 547b83e590a657c5db4625d2c061b516bf7c79fd
child 183105 f81828ffe456908a415145227b4840d598b1c5ff
push id3343
push userffxbld
push dateMon, 17 Mar 2014 21:55:32 +0000
treeherdermozilla-beta@2f7d3415f79f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage, sledru
bugs975552
milestone29.0a2
Bug 975552 - [Australis] Let the leak detector know about the preloaded customization tab r=bustage, a=sledru.
testing/mochitest/browser-test.js
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -12,16 +12,19 @@ if (Cc === undefined) {
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 XPCOMUtils.defineLazyModuleGetter(this, "Services",
   "resource://gre/modules/Services.jsm");
 
 XPCOMUtils.defineLazyModuleGetter(this, "BrowserNewTabPreloader",
   "resource:///modules/BrowserNewTabPreloader.jsm", "BrowserNewTabPreloader");
 
+XPCOMUtils.defineLazyModuleGetter(this, "CustomizationTabPreloader",
+  "resource:///modules/CustomizationTabPreloader.jsm", "CustomizationTabPreloader");
+
 window.addEventListener("load", testOnLoad, false);
 
 function testOnLoad() {
   window.removeEventListener("load", testOnLoad, false);
 
   gConfig = readConfig();
   if (gConfig.testRoot == "browser" ||
       gConfig.testRoot == "metro" ||
@@ -421,16 +424,17 @@ Tester.prototype = {
           socialSidebar.setAttribute("src", "about:blank");
 
           // Destroy BackgroundPageThumbs resources.
           let {BackgroundPageThumbs} =
             Cu.import("resource://gre/modules/BackgroundPageThumbs.jsm", {});
           BackgroundPageThumbs._destroy();
 
           BrowserNewTabPreloader.uninit();
+          CustomizationTabPreloader.uninit();
           SocialFlyout.unload();
           SocialShare.uninit();
           TabView.uninit();
         }
 
         // Schedule GC and CC runs before finishing in order to detect
         // DOM windows leaked by our tests or the tested code.