Bug 842946 - When there is no selected tab, don't try to apply viewport updates. r=mfinkle
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 25 Feb 2013 14:40:44 -0500
changeset 122934 d63e1c2e39b2d93261fd2208370b14cabce98932
parent 122933 fd03d6a24c3ea9dda8d8f94ff68a04595a438bfd
child 122935 18a5e71f82c492101eec0d7aa2356762a9e2b5c7
push id1387
push userphilringnalda@gmail.com
push dateTue, 26 Feb 2013 22:32:56 +0000
treeherderfx-team@ad4cc4e97774 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle
bugs842946
milestone22.0a1
Bug 842946 - When there is no selected tab, don't try to apply viewport updates. r=mfinkle
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -562,17 +562,17 @@ var BrowserApp = {
       if (window.top.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).isFirstPaint)
         return false;
     } catch (e) {
       return false;
     }
 
     let tab = this.selectedTab;
     if (!tab)
-      return true;
+      return false;
     return tab.contentDocumentIsDisplayed;
   },
 
   displayedDocumentChanged: function() {
     window.top.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowUtils).isFirstPaint = true;
   },
 
   get tabs() {