Bug 792143 - Zombify the LRU tab when a new tab is opened, subject to the zombieTime pref. r=mfinkle
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 19 Oct 2012 11:47:26 -0400
changeset 110778 9086b50a71c3c0fce9af0f55a4df5ab82fed605f
parent 110777 4c0a5d9f82eed0083560bb702ee699d9560c5bd9
child 110779 610a7c294f0ed3f3b094c654e86515af118bf6d3
push id16740
push userkgupta@mozilla.com
push dateFri, 19 Oct 2012 15:47:38 +0000
treeherdermozilla-inbound@9086b50a71c3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs792143
milestone19.0a1
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 792143 - Zombify the LRU tab when a new tab is opened, subject to the zombieTime pref. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -671,16 +671,18 @@ var BrowserApp = {
       let ss = Cc["@mozilla.org/browser/sessionstore;1"].getService(Ci.nsISessionStore);
       ss.setTabValue(newTab, "appOrigin", aURI);
     }
 
     let evt = document.createEvent("UIEvents");
     evt.initUIEvent("TabOpen", true, false, window, null);
     newTab.browser.dispatchEvent(evt);
 
+    Tabs.zombifyLru();
+
     return newTab;
   },
 
   // Use this method to close a tab from JS. This method sends a message
   // to Java to close the tab in the Java UI (we'll get a Tab:Closed message
   // back from Java when that happens).
   closeTab: function closeTab(aTab) {
     if (!aTab) {