Bug 732206 - Fix Ts failures by preventing some errors from appearing in logcat. r=Cwiiis
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 06 Mar 2012 10:02:34 -0500
changeset 89301 7f809f941e8389f02824c5e404c554fa679b5ddc
parent 89300 c0569197ca1144885dcf44d20eeee7b2c9e9b3a7
child 89302 55e4760c58b5c6c89e30d49c77b81228b4171053
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)
reviewersCwiiis
bugs732206
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 732206 - Fix Ts failures by preventing some errors from appearing in logcat. r=Cwiiis
mobile/android/chrome/content/browser.js
--- a/mobile/android/chrome/content/browser.js
+++ b/mobile/android/chrome/content/browser.js
@@ -1567,16 +1567,18 @@ Tab.prototype = {
       this.browser.setAttribute("type", "content-targetable");
       this.browser.docShellIsActive = false;
     }
   },
 
   refreshDisplayPort: function(aDisplayPortMargins) {
     if (this._zoom <= 0)
       return;
+    if (!this.browser.contentDocument.documentElement)
+      return;
 
     let viewport = this.viewport;
 
     // we need to avoid having a display port that is larger than the page, or we will end up
     // painting things outside the page bounds (bug 729169)
 
     let requestedXAmount = Math.max(0, aDisplayPortMargins.left + aDisplayPortMargins.right);
     let requestedYAmount = Math.max(0, aDisplayPortMargins.top + aDisplayPortMargins.bottom);