Bug 648683 - Expose tabs on-demand preference; r=dietrich+gavin, a=broken-merge AURORA_BASE_20110816
authorTim Taubert <tim.taubert@gmx.de>
Tue, 16 Aug 2011 18:59:51 +0200
changeset 75772 41b84b87c816403e1b74963d8094cff0406c989e
parent 75771 9967f28c64e183bd85ae5f761c3ab2d8cb5adbc3
child 75773 4703c999a95baac23b1e5bfba1e2eaae810d7a12
child 75873 5c1add9cd9d71cf72ca22375b650ee21878ba143
push idunknown
push userunknown
push dateunknown
reviewersdietrich, broken-merge
bugs648683
milestone8.0a1
Bug 648683 - Expose tabs on-demand preference; r=dietrich+gavin, a=broken-merge
browser/components/sessionstore/test/browser/browser_595601-restore_hidden.js
--- a/browser/components/sessionstore/test/browser/browser_595601-restore_hidden.js
+++ b/browser/components/sessionstore/test/browser/browser_595601-restore_hidden.js
@@ -14,22 +14,19 @@ let state = {windows:[{tabs:[
   {entries:[{url:"http://example.com#7"}], hidden: true},
   {entries:[{url:"http://example.com#8"}], hidden: true}
 ]}]};
 
 function test() {
   waitForExplicitFinish();
 
   registerCleanupFunction(function () {
-    Services.prefs.clearUserPref("browser.sessionstore.max_concurrent_tabs");
     Services.prefs.clearUserPref("browser.sessionstore.restore_hidden_tabs");
   });
 
-  Services.prefs.setIntPref("browser.sessionstore.max_concurrent_tabs", 3);
-
   // First stage: restoreHiddenTabs = true
   // Second stage: restoreHiddenTabs = false
   test_loadTabs(true, function () {
     test_loadTabs(false, finish);
   });
 }
 
 function test_loadTabs(restoreHiddenTabs, callback) {