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 260456 5081fb1d38f0
parent 260455 e397816859ad
child 260457 97b29f79be5c
push id786
push userryanvm@gmail.com
push date2015-05-11 14:41 +0000
treeherdermozilla-release@85229fbaf017 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh, test-only
bugs1024253
milestone38.0.5
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);