Bug 952592 - [Australis] Collect sizemode from first window in BrowserUITelemetry. r=Gijs.

This commit is contained in:
Mike Conley 2014-01-04 16:39:14 -05:00
parent 86b366517d
commit 761c45a21c

View File

@ -361,6 +361,10 @@ this.BrowserUITelemetry = {
let document = aWindow.document;
let result = {};
// Determine if the window is in the maximized, normal or
// fullscreen state.
result.sizemode = document.documentElement.getAttribute("sizemode");
// Determine if the Bookmarks bar is currently visible
let bookmarksBar = document.getElementById("PersonalToolbar");
result.bookmarksBarEnabled = bookmarksBar && !bookmarksBar.collapsed;