Bug 952592 - Collect sizemode from first window in BrowserUITelemetry. r=Gijs, a=lsblakk.
authorMike Conley <mconley@mozilla.com>
Tue, 07 Jan 2014 00:47:31 -0500
changeset 167856 88596d701a2d4663282b63f13204af0fac6d99fc
parent 167855 ea3d6f1fcaaf051ed0db29a587d490195a44c074
child 167857 12b7cb9e2054ab912cbf8cbfe94e41ea2eb6dca2
push id428
push userbbajaj@mozilla.com
push dateTue, 28 Jan 2014 00:16:25 +0000
treeherdermozilla-release@cd72a7ff3a75 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersGijs, lsblakk
bugs952592
milestone27.0
Bug 952592 - Collect sizemode from first window in BrowserUITelemetry. r=Gijs, a=lsblakk.
browser/modules/BrowserUITelemetry.jsm
--- a/browser/modules/BrowserUITelemetry.jsm
+++ b/browser/modules/BrowserUITelemetry.jsm
@@ -495,16 +495,20 @@ this.BrowserUITelemetry = {
       delete durationMap.customization;
     }
   },
 
   _getWindowMeasurements: function(aWindow) {
     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 add-on bar is currently visible
     let addonBar = document.getElementById("addon-bar");
     result.addonBarEnabled = addonBar && !addonBar.collapsed;
 
     // Determine if the Bookmarks bar is currently visible
     let bookmarksBar = document.getElementById("PersonalToolbar");
     result.bookmarksBarEnabled = bookmarksBar && !bookmarksBar.collapsed;