Bug 685868 - Don't update thumbnails if tablet mode hasn't changed. r=lucasr

This commit is contained in:
Matt Brubeck 2011-09-09 09:06:36 -07:00
parent bb9deb9e7d
commit e1f96e5512

View File

@ -549,7 +549,12 @@ var BrowserUI = {
},
updateTabletLayout: function updateTabletLayout() {
if (Util.isTablet({ forceUpdate: true })) {
let wasTablet = Elements.urlbarState.hasAttribute("tablet");
let isTablet = Util.isTablet({ forceUpdate: true });
if (wasTablet == isTablet)
return;
if (isTablet) {
this.unlockToolbar();
Elements.urlbarState.setAttribute("tablet", "true");
} else {