Bug 649062 - browser_sidebars.js never cleans up tabs it opens [r=vingtetun tests-only DONTBUILD]
authorMark Finkle <mfinkle@mozilla.com>
Mon, 11 Apr 2011 17:21:17 -0400
changeset 67864 94874a2f3bb3e7e58159aebcfdb5bb5e2d091aaf
parent 67863 832de5e41bd2f7a99038df4d9eb902f86c68d6bb
child 67865 61b822ac2d41e5182772d8fba33b04e99b1e47da
child 67951 bb9f0a803c8aed3e1921eff6d77b75a09dcb29a6
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvingtetun
bugs649062
milestone2.2a1pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 649062 - browser_sidebars.js never cleans up tabs it opens [r=vingtetun tests-only DONTBUILD]
mobile/chrome/tests/browser_sidebars.js
--- a/mobile/chrome/tests/browser_sidebars.js
+++ b/mobile/chrome/tests/browser_sidebars.js
@@ -11,16 +11,20 @@ function runNextTest() {
   if (gTests.length > 0) {
     gCurrentTest = gTests.shift();
     info(gCurrentTest.desc);
     gCurrentTest.run();
   }
   else {
     // Close the awesome panel just in case
     BrowserUI.activePanel = null;
+
+    for (let iTab=0; iTab<newTabs.length; iTab++)
+      Browser.closeTab(newTabs[iTab], { forceClose: true });
+
     finish();
   }
 }
 
 function waitForNavigationPanel(aCallback, aWaitForHide) {
   let evt = aWaitForHide ? "NavigationPanelHidden" : "NavigationPanelShown";
   info("waitFor " + evt + "(" + Components.stack.caller + ")");
   window.addEventListener(evt, function(aEvent) {