Bug 727140 - OOM due to zoom of background tabs going to zero. This prevents viewport resizing happening on background tabs which should be a bit faster.
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 20 Feb 2012 18:37:21 -0500
changeset 89194 eff263ee7c827484255e08d56f1e8c20331fc472
parent 89193 b5879891f58c518fc2b8b5e8f1821da797c02c98
child 89195 ab2c10f183e42a45bbc740378626e5791d79244c
push id22242
push userkgupta@mozilla.com
push dateWed, 14 Mar 2012 15:19:09 +0000
treeherdermozilla-central@936ef50fa498 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs727140
milestone13.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 727140 - OOM due to zoom of background tabs going to zero. This prevents viewport resizing happening on background tabs which should be a bit faster.
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -3199,17 +3199,17 @@ var ViewportHandler = {
       height: height,
       autoSize: autoSize,
       allowZoom: allowZoom,
       autoScale: true
     };
   },
 
   onResize: function onResize() {
-    Tabs.getInstance().getSelectedTab().updateViewportSize();        
+    BrowserApp.selectedTab.updateViewportSize();
   },
 
   clamp: function(num, min, max) {
     return Math.max(min, Math.min(max, num));
   },
 
   // The device-pixel-to-CSS-px ratio used to adjust meta viewport values.
   // This is higher on higher-dpi displays, so pages stay about the same physical size.