mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1173180 - Guard against null selectedTab handling Viewport:FixedMarginsChanged; r=kats
This commit is contained in:
parent
4701ecfa88
commit
cc037549be
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user