diff --git a/mobile/android/chrome/content/browser.js b/mobile/android/chrome/content/browser.js index 9a3865b9bd4..b7a3bdf6d67 100644 --- a/mobile/android/chrome/content/browser.js +++ b/mobile/android/chrome/content/browser.js @@ -1856,7 +1856,9 @@ var BrowserApp = { case "Viewport:FixedMarginsChanged": gViewportMargins = JSON.parse(aData); - this.selectedTab.updateViewportSize(gScreenWidth); + if (this.selectedTab) { + this.selectedTab.updateViewportSize(gScreenWidth); + } break; case "nsPref:changed":