diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index e7ab2bb8914c..5fcaf94ac10f 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -1572,6 +1572,8 @@ Tab.prototype = { refreshDisplayPort: function(aDisplayPortMargins) { if (this._zoom <= 0) return; + if (!this.browser.contentDocument.documentElement) + return; let viewport = this.viewport;