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 94874a2f3bb3
parent 67863 832de5e41bd2
child 67865 61b822ac2d41
child 67951 bb9f0a803c8a
push id19446
push usermfinkle@mozilla.com
push date2011-04-11 21:25 +0000
treeherdermozilla-central@94874a2f3bb3 [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) {