Bug 1024253 - Fix chat tests on ubuntu. r=markh, a=test-only
authorShane Caraveo <scaraveo@mozilla.com>
Fri, 08 May 2015 08:07:43 -0700
changeset 265959 55ee778e1bed4d8e936a210ac1ebe8b6c8313417
parent 265958 aabebacf72a5d96b7c39eee3112aab5775aae6a9
child 265960 5e851d50fb9b8d5a28e4fcd4731dd0f17e8fb4b9
push id4718
push userraliiev@mozilla.com
push dateMon, 11 May 2015 18:39:53 +0000
treeherdermozilla-beta@c20c4ef55f08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh, test-only
bugs1024253
milestone39.0a2
Bug 1024253 - Fix chat tests on ubuntu. r=markh, a=test-only
browser/base/content/test/social/head.js
--- a/browser/base/content/test/social/head.js
+++ b/browser/base/content/test/social/head.js
@@ -599,17 +599,19 @@ function resizeAndCheckWidths(first, sec
     m.observe(third, {attributes: true });
     // and just in case we are already at the right size, explicitly call the
     // observer.
     collapsedObserver(undefined, m);
   }, count);
 }
 
 function getChatBar() {
-  return document.getElementById("pinnedchats");
+  let cb = document.getElementById("pinnedchats");
+  cb.hidden = false;
+  return cb;
 }
 
 function getPopupWidth() {
   let chatbar = getChatBar();
   let popup = chatbar.menupopup;
   ok(!popup.parentNode.collapsed, "asking for popup width when it is visible");
   let cs = document.defaultView.getComputedStyle(popup.parentNode);
   let margins = parseInt(cs.marginLeft) + parseInt(cs.marginRight);