Bug 1173180 - Guard against null selectedTab handling Viewport:FixedMarginsChanged; r=kats

This commit is contained in:
Geoff Brown 2015-06-11 09:22:47 -06:00
parent 4701ecfa88
commit cc037549be

View File

@ -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":