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. r=pcwalton
authorDoug Turner <dougt@dougt.org>
Fri, 17 Feb 2012 23:08:47 -0800
changeset 91892 e8b308c392054a7f7ca9320dc54a0644b5558b1c
parent 91891 20692069e82fbeb9744cf024e937d51cac1a95a1
child 91893 2c0e8e4571c84a7d188bc13b639de07dfcd7ab2a
push idunknown
push userunknown
push dateunknown
reviewerspcwalton
bugs727140
milestone13.0a2
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. r=pcwalton
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -3365,18 +3365,17 @@ var ViewportHandler = {
       height: height,
       autoSize: autoSize,
       allowZoom: allowZoom,
       autoScale: true
     };
   },
 
   onResize: function onResize() {
-    for (let i = 0; i < BrowserApp.tabs.length; i++)
-      BrowserApp.tabs[i].updateViewportSize();
+    Tabs.getInstance().getSelectedTab().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.